jQuery EasyUI window - create dialog

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.

Create dialog (Dialog)

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>

Prepare the toolbar (Toolbar) and buttons (Button)

	<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.

Download jQuery EasyUI examples

jeasyui-win-dlg1.zip