Modal
Extends:
Direct Subclass:
Indirect Subclass:
The Modal
component displays a modal dialog, wrapped in a form. Subclasses
should implement the className
, title
, and content
methods.
Static Member Summary
Static Public Members | ||
public static |
Determine whether or not the modal should be dismissible via an 'x' button. |
Member Summary
Public Members | ||
public |
Attributes for an alert component to show below the header. |
|
public |
|
Method Summary
Public Methods | ||
public abstract |
Get the class name to apply to the modal. |
|
public abstract |
content(): VirtualElement Get the content of the modal. |
|
public |
hide() Hide the modal. |
|
public |
loaded() Stop loading. |
|
public |
onbeforeremove(vnode: *): * |
|
public |
oncreate(vnode: *) |
|
public |
onerror(error: RequestError) Show an alert describing an error returned from the API, and give focus to the first relevant field. |
|
public |
onready() Focus on the first input when the modal is ready to be used. |
|
public |
onsubmit(e: Event) Handle the modal form's submit event. |
|
public abstract |
Get the title of the modal dialog. |
|
public |
view(): * |
Static Public Members
public static isDismissible: * source
Determine whether or not the modal should be dismissible via an 'x' button.
Public Members
Public Methods
public abstract content(): VirtualElement source
Get the content of the modal.
Return:
VirtualElement |
public oncreate(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public onerror(error: RequestError) source
Show an alert describing an error returned from the API, and give focus to the first relevant field.
Params:
Name | Type | Attribute | Description |
error | RequestError |
public onsubmit(e: Event) source
Handle the modal form's submit event.
Params:
Name | Type | Attribute | Description |
e | Event |