jQuery EasyUI Window - Creating a Simple Window
Creating a window is very simple. We start by creating a DIV tag:
<div id="win" class="easyui-window" title="My Window" style="width:300px;height:100px;padding:5px;">
Some Content.
</div>
Now, when you run the test page, you will see a window displayed on your screen. No JavaScript code is needed.
If you want to create a hidden window, remember to set the 'closed' attribute to 'true', and you can call the 'open' method to open the window:
<div id="win" class="easyui-window" title="My Window" closed="true" style="width:300px;height:100px;padding:5px;">
Some Content.
</div>
$('#win').window('open');
As a final example, we create a login window:
<div id="win" class="easyui-window" title="Login" style="width:300px;height:180px;">
<form style="padding:10px 20px 10px 40px;">
<p>Name: <input type="text"></p>
<p>Pass: <input type="password"></p>
<div style="padding:5px;text-align:center;">
<a href="#" class="easyui-linkbutton" icon="icon-ok">Ok</a>
<a href="#" class="easyui-linkbutton" icon="icon-cancel">Cancel</a>
</div>
</form>
</div>