namespace Dialog
Includes
Methods
Inherited from Native
Class properties
-
Options #
Dialog.Options -> Object
Global options for dialogs. Overridable by defining
DialogOptions
before 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() ⇒ undefined
Closes 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() ⇒ undefined
Initializes 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
console
andconsole[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.
-