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#addButtonfor details. By default a dialog includes one button with the text “Close” which closes the dialog.
Instance methods
-
close #
Dialog.Base#close() ⇒ undefinedHides this dialog, removes it from the document and unregisters it
-
hide #
Dialog.Base#hide([callback]) ⇒ undefinedHides this dialog and calls
callbackif present -
layout #
Dialog.Base#layout() ⇒ undefinedCenters this dialog on the current viewport
-
setContents #
Dialog.Base#setContents() ⇒ undefinedOverride this method or pass
contentas an option to the constructor to set the contents of the dialog. -
show #
Dialog.Base#show() ⇒ undefinedShows this dialog
