Window Dialogs: System Dialogs and Window Manager
- Source:
Methods
(static) closeWindow(id) → {boolean|undefined}
Closes any dialog (modal or not)
Parameters:
Name | Type | Description |
---|---|---|
id |
id used to create the window |
- Source:
Returns:
true if managed to close, false if
nothing was opened, undefined if error
(static) getModalContext(id) → {Window|undefined|null}
Gets the context of a modal window,
destroys and cleans the context if necessary (e.g. window was closed by the user)
TODO sometimes ctx.window valid but does not have getElementByID etc...
Parameters:
Name | Type | Description |
---|---|---|
id |
id used to create the window |
- Source:
Returns:
window context or undefined
(static) hide()
Hide notification
- Source:
(static) openEditor()
Open Monaco Editor
- Source:
(static) show(text, delayMS, importance, props)
Show notification
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
text |
notification, html-formatted support | |||||||||||||||||
delayMS |
miliseconds to wait before auto close use values < 1000 to not to close at all | |||||||||||||||||
importance |
Dialogs.MSG_[INFO/WARN/ERR] object | |||||||||||||||||
props |
object | other optional parameters
Properties
|
- Source:
(static) showCustom(parentId, header, content, footer, params)
Show custom/dialog window
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parentId |
unique ID of the dialog container, you can hide the window by removing this ID from DOM might not complete or remove existing ID if not unique | |||||||||||||
header |
HTML content to put in the header | |||||||||||||
content |
HTML content | |||||||||||||
footer |
HTML content to put to the footer | |||||||||||||
params |
Properties
|
- Source:
(static) showCustomModal(parentId, title, header, content)
Show custom/dialog in a separate browser window
note: the window context does not have to be immediately available
to get the window context, call getModalContext(..)
to perform event-like calls, use the context and register appropriate events on the new window
Header is put into #window-header container
Content is put into #window-content container
Parameters:
Name | Type | Description |
---|---|---|
parentId |
unique ID to the modals context (does not have to be unique in this DOM if detached) | |
title |
non-formatted title string (for messages, window title tag...) | |
header |
HTML content to put in the header | |
content |
HTML content |
- Source: