Web Development with jQuery®

(Elliott) #1

bapp16.indd 02/17/2015 Page 599


Dialog


DIALOG METHODS

METHOD DESCRIPTION RETURN VALUE

dialog(options) Makes the selected elements into
dialog boxes.

jQuery

dialog('close') Closes the dialog. jQuery

dialog('destroy') Completely removes the dialog. jQuery

dialog('isOpen') Determines if the dialog is open. Boolean

dialog('moveToTop') Moves the specifi ed dialog on top of
the dialogs stack.

jQuery

dialog('open') Opens the dialog. jQuery

dialog('option',
optionName)

Returns the value of the specifi ed option. Mixed

dialog('option',
optionName, value)

Sets the specifi ed option to the
specifi ed value.

jQuery

dialog('option') Returns an object of options in key,
value pairs.

Object

dialog('option',
optionObject)

Sets the specifi ed options as an object
of key, value pairs.

jQuery

dialog('widget') Returns a jQuery object containing the
dialog.

jQuery

P


http://www.it-ebooks.info

Free download pdf