namespace Dialog
Includes
Methods
Inherited from Native
Class properties
-
Options #
Dialog.Options -> ObjectGlobal options for dialogs. Overridable by defining
DialogOptionsbefore loading the protototo library.
Class methods
-
close #
Dialog.close(id) ⇒ undefined-
id(String) – id of the dialog to close
Closes the dialog with the given id.
-
-
closeAll #
Dialog.closeAll() ⇒ undefinedCloses all open windows, modal or otherwise.
-
effectsQueue #
Dialog.effectsQueue([position = 'end']) ⇒ Object-
position(String) – position of effect in queue
Returns the default effects queue options.
-
-
init #
Dialog.init() ⇒ undefinedInitializes the protototo library
-
log #
Dialog.log(kind, message) ⇒ undefined-
kind(String) – the kind of message to log (info, warning, error) -
message(String) – the message to log
Designed to be used with the firebug console but will work as long as
consoleandconsole[kind]are defined. -
-
register #
Dialog.register(dialog) ⇒ undefined-
dialog(Dialog.Base) – the dialog to register
Registers the given dialog and covers the screen with an overlay if the dialog is modal.
-
-
unregister #
Dialog.unregister(dialog) ⇒ undefined-
dialog(Dialog.Base) – the dialog to unregister
Unregisters the given dialog and removes screen cover if this is the last modal dialog in the registry.
-
