ModalController
Extends:
ViewController → ModalController
Manages a modal in a webpage. Use ModalContext.shared
to get the global
context. This exists because there is some code dependent on this but
prefer ModalViewController for new purposes.
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
dismiss() Closes the modal if open |
|
public |
present(modal: ModalTemplate): boolean Presents a modal dialog |
Inherited Summary
From class ViewController | ||
public static |
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 Methods
public present(modal: ModalTemplate): boolean source
Presents a modal dialog
Params:
Name | Type | Attribute | Description |
modal | ModalTemplate | Modal dialog to present |