<abstract> new Dialog(def)
The abstract Dialog class
Parameters:
| Name | Type | Description |
|---|---|---|
def |
Granite.author.ui.Dialog~DialogDef | The definition of the Dialog |
- Source:
- ui/ui.Dialog.js
Methods
-
getConfig()
-
Returns the configuration properties of the dialog
- Source:
- ui/ui.Dialog.js
Returns:
-
getRequestData()
-
Returns the additional data to be sent when requesting the Dialog
- Source:
- ui/ui.Dialog.js
Returns:
- Type
- Object
-
onClose()
-
The dialog has been closed
Callback
- Source:
- ui/ui.Dialog.js
-
onFocus()
-
The dialog is focused
Callback
- Source:
- ui/ui.Dialog.js
-
onOpen()
-
The dialog has been opened
Callback
- Source:
- ui/ui.Dialog.js
-
onReady()
-
The dialog is ready
Callback
- Source:
- ui/ui.Dialog.js
-
onSuccess()
-
The dialog form submission has succeeded
Callback
- Source:
- ui/ui.Dialog.js
Type Definitions
-
DialogConfig
-
Represents the Dialog Configuration object.
Type:
- object
- Source:
- ui/ui.Dialog.js
Properties:
Name Type Description srcstring The URL of the Dialog
isFloatingboolean Indicates if the Dialog should be floating
loadingModestring The Dialog loading mode
layoutlayout The Dialog layout
-
DialogDef
-
Represents the Dialog Definition object.
Type:
- object
- Source:
- ui/ui.Dialog.js
Properties:
Name Type Description getConfigfunction Returns the Configuration of the dialog (see Granite.author.ui.Dialog~DialogConfig)
getRequestedDatafunction Returns the additional data to be sent when requesting the Dialog
onOpenfunction The dialog has been opened (callback)
onReadyfunction The dialog is ready (callback)
onFocusfunction The dialog has received focus (callback)
onSuccessfunction The dialog form submission has succeeded (callback)
onClosefunction The dialog has been closed (callback)