Extended from $.fn.window.defaults, rewrite defaults with $.fn.dialog.defaults .
Depend on
Window
LinkButton
Usage
Copy Code code as follows:
<div id= "dd" title= "My Dialog" style= "width:400px;height:200px;" >
Dialog Content.
</div>
Copy Code code as follows:
$ (' #dd '). Dialog ({
Modal:true
});
Characteristics
Its attributes extend from window, and the following are attributes that are overridden for dialog.
name |
type |
description |
default |
title |
string |
dialog box title text. |
new Dialog |
collapsible |
boolean |
define whether to show collapsed Button. |
false |
minimizable |
boolean |
definition shows minimum of the button. |
false |
maximizable |
boolean |
definition shows maximum of the button. |
false |
Resizable |
Boolean |
Defines whether a dialog box can resize. |
False |
Toolbar |
Array |
dialog box at the top of the toolbar, each tool has the same options as LinkButton . |
Null |
Buttons |
Array |
The bottom button of the dialog box, each button has the same options as LinkButton . |
Null |
Event
Its events are extended from window.
Method
The method extends from window, and the following methods are added for dialog.
name |
parameters |
description |
Dialog |
None |
Returns the dialog object. |