Caplin Trader 5.1.0

Class: module:ct-dom/alert/StandardAlertDispatcher

module:ct-dom/alert/StandardAlertDispatcher()

new module:ct-dom/alert/StandardAlertDispatcher()

Constructs a new instance of StandardAlertDispatcher.

The StandardAlertDispatcher is an implementation of the ct-services/UserPromptService service.

Implements:

Members

(static, readonly) BODY_PADDING :int

The amount of padding (in pixels) surrounding the text within the dialog box.

Type:
  • int

(static, readonly) DIALOG_MIN_WIDTH :int

The minimum width of the dialog box in pixels.

Type:
  • int

Methods

isAlertShowing() → {boolean}

Used to query if an alert or confirm alert dialog is currently displayed.

Does not cover confirm dialogs only alerts.

Implements:
Returns:

true if an alert/confirm alert is currently displayed, otherwise false.

Type
boolean