Namespace: Dialogs

Dialogs

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
Type
boolean | undefined

(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
Type
Window | undefined | null

(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
Name Type Attributes Description
queued object <optional>
onShow object <optional>
onHide object <optional>
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
Name Type Description
defaultHeight custom height, can be a CSS value (string) or a number (pixels)
allowClose whether to show 'close' button, default true
allowResize whether to allow user to change the window size, default false
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: