Home Reference Source
import FullScreenModalTemplate from '~/controllers/FullScreenModalController.js'
public class | source

FullScreenModalTemplate

Extends:

ViewController → FullScreenModalTemplate

Controls a 'FullScreenModalTemplate' which is used for things like answer UI.

Constructor Summary

Public Constructor
public

constructor(parent: Element)

Creates empty instance

Member Summary

Public Members
public

activeNode: Node

The node of the template

public

The Active template

public

parent: Element

Parent node

Method Summary

Public Methods
public

async dismiss(opts: Object)

Hides

public

async present(template: FullScreenModalTemplate, opts: Object)

Presents

Inherited Summary

From class ViewController
public static

forClass(className: string, predicate: Function, root: HTMLElement)

Creates a view controller directly for all members of a class.

public static

of(elem: string | Element): ViewController

Returns a canolical VC of an element if it exists

Public Constructors

public constructor(parent: Element) source

Creates empty instance

Override:

ViewController#constructor

Params:

NameTypeAttributeDescription
parent Element

Public Members

public activeNode: Node source

The node of the template

public activeTemplate: FullScreenModalTemplate source

The Active template

public parent: Element source

Parent node

Public Methods

public async dismiss(opts: Object) source

Hides

Params:

NameTypeAttributeDescription
opts Object
  • optional
  • default: {}
opts.animated boolean
  • optional
  • default: true

If to animate transition

public async present(template: FullScreenModalTemplate, opts: Object) source

Presents

Params:

NameTypeAttributeDescription
template FullScreenModalTemplate
opts Object
  • optional
  • default: {}
opts.animated boolean
  • optional
  • default: true

If to animate transition