Namespace: DialogFrame

Granite.author. DialogFrame

The Dialog Frame is responsible for opening (includes loading in the proper mode) / closing the Granite.author.ui.Dialogs inside the Granite.author.EditorFrame.

Source:
DialogFrame.js

Members


<static> currentDialog :Granite.author.ui.Dialog

Currently opened dialog

Type:
Source:
DialogFrame.js

<static> currentFloatingDialog :Granite.author.ui.Dialog

Currently opened floating dialog

Type:
Source:
DialogFrame.js

<static> dialogMode :string

Mode in which dialogs will be loaded (configuration happens at the Editor level)

Type:
  • string
Source:
DialogFrame.js

<static> loader :object

Contains the different dialog loaders (inline, newpage, auto).
Other Editors could extend it.

Type:
  • object
Source:
DialogFrame.js

Methods


<static> closeDialog()

Closes the currently opened dialog

Source:
DialogFrame.js

<static> isOpened()

Indicates if a dialog is still opened

Source:
DialogFrame.js

<static> openDialog(dialog)

Opens the passed dialog. The dialog is loaded depending on the Editor config (dialogMode), or on its own config (dialog.loadingMode) otherwise.

Parameters:
Name Type Description
dialog Granite.author.ui.Dialog

The dialog to open

Source:
DialogFrame.js