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
By default, the window (window) has four tools: collapsible, minimizable, maximizable and closable. For example, we define the following window (window):
<Div id = "win" class = "easyui-window" title = "My Window" style = "padding: 10px; width: 200px; height: 100px;"> window content </ Div>
For a custom tool, the tool is set to true or false. For example, we want to define a window (window), just having a closable tool. You should set any other tool to false. We can mark or by jQuery code defines the tools properties. Now we use jQuery code to define the window (window):
$ ( '# Win'). Window ({ collapsible: false, minimizable: false, maximizable: false });
If we want to add custom tools to the window (window), we can use the tools properties. As examples demonstrate, we add two tools to the window (window):
$ ( '# Win'). Window ({ collapsible: false, minimizable: false, maximizable: false, tools: [{ iconCls: 'icon-add', handler: function () { alert ( 'add'); } }, { iconCls: 'icon-remove', handler: function () { alert ( 'remove'); } }] });