Class: SystemDialogManager

SystemDialogManager

new SystemDialogManager()

A manager for each SystemDialog show and hide.

A manager for each SystemDialog show and hide. Show a dialog - the dialog publish show event from SystemDialog. Hide a dialog - the dialog publish hide event from SystemDialog.

          - a new active dialog publish 'system-dialog-show' event,
            then hide the previous active dialog.
          - received 'home', 'holdhome' event from the home button.
            And pass the event type to be the argument
            for options `onHide` attribute.
Source:
Requires:

Requires

Members

(static) elements

System app is made of a top-level <div ="screen"></div> DOM element which contain all possible screens displayed by the app.

System app is made of a top-level <div ="screen"></div> DOM element which contain all possible screens displayed by the app. Multiple screens can be displayed at a time. We store the list of currently visible screens into this DOM element class attribute.

Properties:
Name Type Description
windows DOMElement

the #windows element, which is the same element that the would AppWindowManager use.

screen DOMElement

the #screen element.

Source:

configs

Source:

states

Source:

Methods

(private) activateDialog()

Set an dialog as the active dialog.

Set an dialog as the active dialog.

This:
Source:

(private) deactivateDialog()

Deactivate the current active dialog.

Deactivate the current active dialog.

This:
Source:

handleEvent()

This:
Source:
Listens to Events:
  • system-dialog-created - when a system dialog got created, it would fire this event.event:
  • system-dialog-show - when a system dialog got show request, it would fire this event.event:
  • system-dialog-hide - when a system dialog got hide request, it would fire this event.event:

(private) initElements()

This:
Source:

(private) registerDialog()

This:
Source:

(private) start()

Hook listeners of events this manager interested in.

Hook listeners of events this manager interested in.

This:
Source:

(private) unregisterDialog()

This:
Source: