new Window(elem)
Creates instance.
Parameters:
Name | Type | Description |
---|---|---|
elem |
jQuery | The window element. |
Members
$dom :jQuery
The window element.
Type:
modal :boolean
The flag whether window is modal.
Type:
- boolean
Methods
(static) create(model) → {nge.ui.Window}
Creates window instance.
Parameters:
Name | Type | Description |
---|---|---|
model |
Object | The window model. |
Returns:
The window instance.
- Type
- nge.ui.Window
(static) of(elem) → {nge.ui.Window}
Returns window of an element.
Parameters:
Name | Type | Description |
---|---|---|
elem |
jQuery | DOMElement | string | The window element, any descendant, or jQuery selector. |
Returns:
The window instance or null if element doesn't have
any.
- Type
- nge.ui.Window
close()
Closes window.
setContent(content)
Sets window content.
Parameters:
Name | Type | Description |
---|---|---|
content |
string | jQuery | The content. |