class Dialog.Base
Description
A base class for all dialogs.
Subclasses
Includes
Constructor
new Dialog.Base(options)
-
options
(Object
) – options for this dialog
Supported options:
width
(String | Number): the desired width of the dialog. By default set to Dialog.Options.defaultWidth.modal
(Boolean): true to simulate a modal dialog, false otherwise (the default).transitionDuration
(Number): if using effects will determine the duration of each effects transition. By default set to Dialog.Options.transitionDuration.buttons
(Array): list of button descriptions for the dialog. SeeDialog.ButtonPanel#addButton
for details. By default a dialog includes one button with the text “Close” which closes the dialog.
Instance methods
-
close #
Dialog.Base#close() ⇒ undefined
Hides this dialog, removes it from the document and unregisters it
-
hide #
Dialog.Base#hide([callback]) ⇒ undefined
Hides this dialog and calls
callback
if present -
layout #
Dialog.Base#layout() ⇒ undefined
Centers this dialog on the current viewport
-
setContents #
Dialog.Base#setContents() ⇒ undefined
Override this method or pass
content
as an option to the constructor to set the contents of the dialog. -
show #
Dialog.Base#show() ⇒ undefined
Shows this dialog