HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Dialog (Dialog) is a special window (window), it can be included in the tool bar at the top and at the bottom of the button. By default, the dialog box (Dialog) can not be resized, but the user can set the resizable property is true, it can change the size.
Dialog (Dialog) is very simple, you can create tags from DIV, as follows:
<Div id = "dd" class = "easyui-dialog" style = "padding: 5px; width: 400px; height: 200px;" title = "My Dialog" iconCls = "icon-ok" toolbar = "# dlg-toolbar" buttons = "# dlg-buttons"> Dialog Content. </ Div>
<Div id = "dlg-toolbar"> <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="javascript:alert('Add')"> Add </a> <a href="#" class="easyui-linkbutton" iconCls="icon-save" plain="true" onclick="javascript:alert('Save')"> Save </a> </ Div> <Div id = "dlg-buttons"> <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="javascript:alert('Ok')"> Ok </a> <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dd').dialog('close')"> Cancel </a> </ Div>
The above code we create a dialog with a toolbar (toolbar) and buttons (button) of (dialog). This is the dialog box (dialog), the toolbar (toolbar), content (content) and buttons (buttons) standard.