The dialog dialog box component relies on window (window) components, LinkButton components
Load mode
Class load
<divclass= "Easyui-dialog"
title= "Pop-up box"
data-options= "Iconcls: ' Icon-add ', resizable:true,modal:true"
Style= "width:400px;height:200px;" >
Pop-up box contents
</div>
|
JS Call load
<ahref= "#" class= "Easyui-linkbutton"
data-options= "Iconcls: ' Icon-edit ', plain:true" > Edit </a>
<ahref= "#" class= "Easyui-linkbutton"
data-options= "Iconcls: ' Icon-help ', plain:true" > Help </a>
Whether to show collapsible buttons
Whether to show the Minimize button
Whether to display the Maximize button
Can I change the dialog box window size
Set dialog box window Top tool bar
dialog box window Bottom button
|
Property List
Window properties are extended from window (panel), and new or redefined properties for Windows are as follows
Dialog is inherited from the window component, so both the window component and the Panel component are available
Events List
The window's events are fully inherited from Windows (panels). So, directly refer to the Window panel event.
Dialog Events
$ (' #box '). Dialog ({
width:600,
height:400,
Modal:true,
Onclose:function () {
Alert (' Off after fire! ');
},
});
|
Method List
The dialog box is extended from window, and the dialog box adds the following method
Returns the External Window object
Console.log (' #box '). Window (' dialog ');
Use $.fn.window.defaults to override the default value object.
|