Latest web development tutorials
×

jQuery EasyUI Tutorial

jQuery EasyUI Tutorial jQuery EasyUI Introduction

jEasyUI application

jEasyUI Create a CRUD application jEasyUI Create a CRUD data grid jEasyUI Form CRUD application jEasyUI Create an RSS reader

jEasyUI Drag and drop

jEasyUI Basic drag and drop jEasyUI Create a drag-and-drop shopping cart jEasyUI Create a school curriculum

jEasyUI Menus and buttons

jEasyUI Create a simple menu jEasyUI Create a link button jEasyUI Create a menu button jEasyUI Create a split button

jEasyUI layout

jEasyUI Create a border layout jEasyUI Create a complex layout jEasyUI Creates a fold panel jEasyUI Create a tab page jEasyUI Dynamically add a tab jEasyUI Add the AutoPlay tab jEasyUI Create the XP style left panel

jEasyUI Data grid

jEasyUI Convert HTML tables to data grids jEasyUI Get the selected row data jEasyUI Add the query function jEasyUI Add a toolbar jEasyUI Create complex toolbars jEasyUI Sets the frozen column jEasyUI Dynamically change columns jEasyUI Format the column jEasyUI Set sort jEasyUI Custom sorting jEasyUI Create a column combination jEasyUI Add a check box jEasyUI Custom tab jEasyUI Enable in-line editing jEasyUI Extension editor jEasyUI Column operation jEasyUI Merge Cells jEasyUI Create a custom view jEasyUI Create a footer summary jEasyUI Condition Sets the line background color jEasyUI Create an attribute grid jEasyUI The extended line shows the details jEasyUI Create a subgrid jEasyUI Display massive data jEasyUI Add a paging component

jEasyUI window

jEasyUI Create a simple window jEasyUI Customize the Window Toolbar jEasyUI Window and layout jEasyUI Create a dialog box jEasyUI Customize the dialog box

jEasyUI Tree menu

jEasyUI Use the markup to create a tree menu jEasyUI Create an asynchronous tree menu jEasyUI Tree menu to add nodes jEasyUI Create a tree menu with check boxes jEasyUI Tree menu drag and drop control jEasyUI The Tree menu loads the parent / child nodes jEasyUI Create the base tree grid jEasyUI Create a complex tree grid jEasyUI Dynamic loading of tree jEasyUI The tree grid adds pagination jEasyUI Tree-lazy lazy-loading node

jEasyUI Form

jEasyUI Create an asynchronous submission form jEasyUI Form validation jEasyUI Create a tree drop-down box jEasyUI Format the drop-down box jEasyUI Filter down the data grid

jEasyUI Reference Manual

jQuery EasyUI Plugin jQuery EasyUI Extended

jQuery EasyUI Layout - create XP style left panel

Under normal circumstances, the Windows XP Explorer file folder, the panel (panel) on the left side contains some common tasks. This tutorial shows you how to easyui panel (panel) plugin to create XP left panel.

Define panel (panel)

We define some panel (panel), these panels (panel) to display the number of tasks. Each panel (panel) should have at least folding / unfolding tool button.

Code as follows:

	<Div style = "width: 200px; height: auto; background: # 7190E0; padding: 5px;">
		<Div class = "easyui-panel" title = "Picture Tasks" collapsible = "true" style = "width: 200px; height: auto; padding: 10px;">
			View as a slide show <br/>
			Order prints online <br/>
			Print pictures
		</ Div>
		<br/>
		<Div class = "easyui-panel" title = "File and Folder Tasks" collapsible = "true" style = "width: 200px; height: auto; padding: 10px;">
			Make a new folder <br/>
			Publish this folder to the Web <br/>
			Share this folder
		</ Div>
		<br/>
		<Div class = "easyui-panel" title = "Other Places" collapsible = "true" collapsed = "true" style = "width: 200px; height: auto; padding: 10px;">
			New York <br/>
			My Pictures <br/>
			My Computer <br/>
			My Network Places
		</ Div>
		<br/>
		<Div class = "easyui-panel" title = "Details" collapsible = "true" style = "width: 200px; height: auto; padding: 10px;">
			My documents <br/>
			File folder <br/> <br/>
			Date modified: Oct.3rd 2010
		</ Div>
	</ Div>

Custom panel (panel) of appearance

Please note that this view appearance is not what we want, we must change the panel (panel) header background image and collapse / expand button icon.

It is not difficult to do, we need to do is to redefine some of the CSS.

	.panel-body {
		background: # f0f0f0;
	}
	.panel-header {
		background: #fff url ( 'images / panel_header_bg.gif') no-repeat top right;
	}
	.panel-tool-collapse {
		background: url ( 'images / arrow_up.gif') no-repeat 0px -3px;
	}
	.panel-tool-expand {
		background: url ( 'images / arrow_down.gif') no-repeat 0px -3px;
	}

Thus, the use easyui custom user interface is very simple.

Download jQuery EasyUI examples

jeasyui-layout-xp.zip