class S2.UI.Dialog
Description
A class for showing dialogs on screen.
Options
zIndex(Number): The CSSz-indexfor the dialog. Default is1000.title(String): The text to display in the dialog's title bar. Default is"Dialog".content(String|Element): The content to display as the body of the dialog. Strings can be plaintext or HTML; they'll be inserted as-is into the dialog. Ifcontentrefers to an element on the page, that element will be detached from its initial location when the dialog is instantiated.submitForms(Boolean): By default, a dialog will suppress theonsubmitevent of any forms included in the dialog's content (in order to prevent navigation to a new page). Set this totrueto override this behavior.closeOnEscape(Boolean): Whether the dialog closes (with a "cancel" outcome) when the ESC key is pressed. Default istrue.draggable(Boolean): Whether the dialog should be draggable (with the dialog's title bar as the handle). Default istrue.resizable(Boolean): Whether the dialog should be resizable. Default isfalse.buttons(Array|Boolean): A set ofObjects that describe the buttons that should appear at the bottom of the dialog. Set tofalseto omit buttons.
Superclass
Constructor
new S2.UI.Dialog(element, options)
new S2.UI.Dialog(options)
If element is given, that element will become the container for
the dialog. Otherwise, an element will be created to serve as the
container.
Note that the dialog is not displayed on screen when it is created.
You must explicitly call S2.UI.Dialog#open first.