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
Panel (Panel) allows you to create custom layouts for a variety of purposes. In this example, we use a panel (panel) and layout (layout) plug-in to create a msn message box.
We use multiple layouts (layout) in the area of the panel. At the top of the message box we place a query input box, and place a figure on the right picture. In the middle of our region by setting the split property is true, this part was cut into two parts, allows users to change the size of the panel area.
Here is all the code:
<Div class = "easyui-panel" title = "Complex Panel Layout" iconCls = "icon-search" collapsible = "true" style = "padding: 5px; width: 500px; height: 250px;"> <Div class = "easyui-layout" fit = "true"> <Div region = "north" border = "false" class = "p-search"> <Label> Search: </ label> <input> </ input> </ Div> <Div region = "center" border = "false"> <Div class = "easyui-layout" fit = "true"> <Div region = "east" border = "false" class = "p-right"> <Img src = "images / msn.gif" /> </ Div> <Div region = "center" border = "false" style = "border: 1px solid #ccc;"> <Div class = "easyui-layout" fit = "true"> <Div region = "south" split = "true" border = "false" style = "height: 60px;"> <Textarea style = "border: 0; width: 100%; height: 100%; resize: none">. Hi, I am easyui </ textarea> </ Div> <Div region = "center" border = "false"> </ Div> </ Div> </ Div> </ Div> </ Div> </ Div> </ Div>
We do not need to write any javascript code that they have a very powerful design of the user interface.