O'Reilly logo

jQuery UI 1.10: The User Interface Library for jQuery by Dan Wellman, Alex Libby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Listing the dialog options

An option object can be used in a dialog's widget method to configure various dialog options. Let's look at the available options:

Option

Default value

Description

appendTo

"body"

Determines which element the dialog (and overlay, if modal) should be appended to.

autoOpen

true

Shows the dialog as soon as the dialog() method is called, when set to true.

buttons

{}

Supplies an object containing buttons to be used with the dialog. Each key becomes the text on the <button> element, and each value is a callback function, which is executed when the button is clicked.

closeOnEscape

true

If set to true, the dialog will close when the Esc key is pressed.

dialogClass

""

Sets additional classnames ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required