1. Basic use
Code:
<HTML xmlns = "http://www.w3.org/1999/xhtml">
Or
<HTML xmlns = "http://www.w3.org/1999/xhtml">
:
2. Window Toolbar
Code:
<SCRIPT type = "text/JavaScript"> $ (function () {$ ("# Win "). window ({Title: "form", width: 300, height: 200, iconcls: "icon-Add", collapsible: True, minimizable: True, maximizable: True, resizable: false, modal: True, href: "content. aspx ", tools: [{iconcls: 'icon-add', Handler: function () {alert ('add') ;},{ iconcls: 'icon-delete ', handler: function () {alert ('delete') ;}}) ;}); </SCRIPT>
:
3. Parameters
Most of the properties are the same as those of panel. Some private properties of window are listed below:
Attribute name |
Type |
Description |
Default Value |
Zindex |
Number |
The Z-index attribute of the window, which can be used to add |
9000 |
Draggable |
Boolean |
Determines whether a window can be dragged. |
True |
Resizable |
Boolean |
Define whether the window size can be changed |
True |
Shadow |
Boolean |
If this parameter is set to true, the window shadow is displayed. |
True |
Modal |
Boolean |
Defines whether a window is a mode window. |
False |
Window also overwrites some properties in the panel.
Attribute name |
Type |
Description |
Default Value |
Title |
String |
Title Text of the window |
New window |
Collapsible |
Boolean |
Define whether to display the foldable definition button |
True |
Minimizable |
Boolean |
Define whether to display the minimization button |
True |
Maximizable |
Boolean |
Define whether to display the maximize button |
True |
Closable |
Boolean |
Define whether to display the close button |
True |
4. Events
Window events are the same as panel events.
5. Method
Except for "Header" and "body", the function method of window is the same as that of panel.