Preview only show first 10 pages with watermark. For full document please download

Jquery Easyui: Welcome To Jquery Easyui

   EMBED


Share

Transcript

jQuery EasyUI: Welcome to jQuery EasyUI jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Search this site Documentation Download Contact Search Forum Welcome to jQuery EasyUI jQuery EasyUI framework help you build your web page easily. easyui is a collection of user-interface plugin based on jQuery. using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup. easyui is very easy but powerful. Editable AJAX TreeGrid The fastest and most complex table, grid, chart or treegrid on Internet www.treegrid.com page_revision: 15, last_edited: Edit Powered by Wikidot.com Tags History Files Print Site tools + Options Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License http://jquery-easyui.wikidot.com/[2010-6-14 14:24:21] jQuery EasyUI: Welcome to jQuery EasyUI jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Search this site Documentation Download Contact Search Forum Welcome to jQuery EasyUI jQuery EasyUI framework help you build your web page easily. easyui is a collection of user-interface plugin based on jQuery. using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup. easyui is very easy but powerful. Editable AJAX TreeGrid The fastest and most complex table, grid, chart or treegrid on Internet www.treegrid.com page_revision: 15, last_edited: Edit Powered by Wikidot.com Tags History Files Print Site tools + Options Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License http://jquery-easyui.wikidot.com/start[2010-6-14 14:24:33] jQuery EasyUI: Tutorial jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Search this site Documentation Download Contact Forum Tutorial Intruduction This tutorial aims to use easyui framework to demonstrate how to create your web page easily. First of all, you need to include some js and css file: < link rel = "stylesheet " type ="text/css " href ="../themes/default/easyui.css" > < script type ="text/javascript " src ="../jquery-1.4.2.min.js " > < script type= " text/javascript " src =" ../jquery.easyui.min.js " > easyui predefines some icon CSS class which can show background image(16x16). If you wish to use it you need to include: < link rel = "stylesheet " type ="text/css " href ="../themes/icon.css" > Contents 1. Drag and Drop Basic Drag and Drop Building a drag-drop shopping cart Creating a School Timetable 2. Menu and Button Create a simple menu Create a Link Button Create a Menu Button Create a Split Button 3. Layout Build border layout for Web Pages Complex layout on Panel Create Accordion Create Tabs Dynamically add tabs Create XP style left panel 4. DataGrid Convert a HTML table to DataGrid Add a pagination to DataGrid Get selected row data from DataGrid Add a toolbar to DataGrid Frozen columns for DataGrid Dynamic change DataGrid columns Formatting DataGrid columns Add sorting to DataGrid Create column groups in DataGrid CheckBox select on DataGrid Custom DataGrid Paging Enable DataGrid Inline Editing 5. Window My first window Custom window tools Window and Layout Create Dialog 6. Tree Create Tree from markup Create Async Tree Append nodes to tree Create Tree with CheckBox Nodes 7. Form Submit a form with Ajax Add ComboTree field to a form Form Validation Editable AJAX TreeGrid The fastest and most complex table, grid, chart or treegrid on Internet www.treegrid.com http://jquery-easyui.wikidot.com/tutorial[2010-6-14 14:24:46] Search jQuery EasyUI: Tutorial page_revision: 47, last_edited: Edit Powered by Wikidot.com Tags History Files Print Site tools + Options Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License http://jquery-easyui.wikidot.com/tutorial[2010-6-14 14:24:46] jQuery EasyUI: Documentation jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Search this site Documentation Download Contact Search Forum Documentation Base EasyLoader Draggable Droppable Resizable Layout Panel Tabs Accordion Layout Menu and Button Menu LinkButton MenuButton SplitButton Form Form ComboBox ComboTree NumberBox ValidateBox DateBox Calendar Windows Window Dialog Messager DataGrid and Tree Pagination DataGrid Tree Editable AJAX TreeGrid The fastest and most complex table, grid, chart or treegrid on Internet www.treegrid.com page_revision: 31, last_edited: Edit Powered by Wikidot.com Tags History Files Print Site tools + Options Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License http://jquery-easyui.wikidot.com/document[2010-6-14 14:25:00] jQuery EasyUI: Download jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Search this site Documentation Download Contact Search Forum Download Select specified version jQuery EasyUI 1.1.1 jQuery EasyUI 1.1 jQuery EasyUI 1.0.5 jQuery EasyUI 1.0.4 jQuery EasyUI 1.0.3 jQuery EasyUI 1.0.2 jQuery EasyUI 1.0.1 Editable AJAX TreeGrid The fastest and most complex table, grid, chart or treegrid on Internet www.treegrid.com page_revision: 8, last_edited: Edit Powered by Wikidot.com Tags History Files Print Site tools + Options Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License http://jquery-easyui.wikidot.com/download[2010-6-14 14:25:11] jQuery EasyUI: Contact jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Documentation Search this site Download Contact Search Forum Contact For more information, please contact: page_revision: 2, last_edited: Edit Powered by Wikidot.com Tags History Files Print Site tools + Options Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License http://jquery-easyui.wikidot.com/contact[2010-6-14 14:25:21] jQuery EasyUI: Forum Categories jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Search this site Documentation Download Contact Search Forum Forum Categories EasyUI discussion General discussion related to easyui Category name General discussion General discussion about easyui Help for easyui If you have a question in using easyui, you can post it and some one will help you. Bug report Reporting your bugs and we will fixed it. Threads Posts Last post 40 89 by  jeasonzhao Jump! 85 175 by  yaofeng928 Jump! 39 65 by  popman Jump! Show hidden RSS: New threads | New posts Powered by Wikidot.com Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License http://jquery-easyui.wikidot.com/forum:start[2010-6-14 14:25:31] jQuery EasyUI: Basic Drag and Drop jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Search this site Documentation Download Contact Search Forum Basic Drag and Drop Tutorial » Basic Drag and Drop This tutorial show you how to make HTML elements draggable. For this example, we will create three DIV elements and then enable them drag and drop. First of all, we create three
elements: < div id= "dd1 " class ="dd-demo ">
< div id = " dd2 " class ="dd-demo ">
< div id =" dd3" class =" dd-demo " >
For first
element, we make it draggable by default. $ (' #dd1 ') .draggable () ; For second
element, we make it draggable by creating a proxy that clone the original element. $ (' #dd2 ') .draggable ({ proxy : 'clone ' }) ; For third
element, we make it draggable by creating a custom proxy. $ (' #dd3 ') .draggable ({ proxy : function (source ){ var p = $ ('
proxy
'); p . appendTo (' body') ; return p ; } }) ; Download the drag-drop example: easyui-drag-drop-demo.zip Try MadCap Flare Free The Leading Help Authoring Tool with True Multi-Channel Publishing. www.MadCapSoftware.com/Flare page_revision: 6, last_edited: Edit Powered by Wikidot.com Tags History Files Print Site tools + Options Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License http://jquery-easyui.wikidot.com/tutorial:dnd1[2010-6-14 14:25:46] jQuery EasyUI: Building a drag-drop shopping cart jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Documentation Search this site Download Contact Search Forum Building a drag-drop shopping cart Tutorial » Building a drag-drop shopping cart If you can easily implement drag and drop with your web application, then you know you've got something special. With jQuery EasyUI, we have drag-drop capabilities in web application. In this tutorial, we will show you how to build a shopping cart page which enables users to drag and drop the products they wish to buy. The shopping basket items and the price will be updated. Displaying products on the page: < ul class = "products "> < li > < a href = "#" class="item "> < img src ="shirt1.gif "/> < div > < p> Balloon < p> Price:$25 < li > < a href ="# " class=" item"> < img src=" shirt2.gif"/> < div > < p>Feeling < p>Price:$25

Displaying timetable < div class = "right "> < table > < tr > < td class =" blank" > < td class =" title" >Monday < td class =" title" >Tuesday < td class ="title "> Wednesday < td class ="title ">Thursday < td class = "title ">Friday < tr > < td class ="time ">08:00 < td class = "drop" > < td class = "drop" > < td class = "drop" > < td class = "drop" > < td class = "drop" >
Drag the school subject on the left $ (' .left .item ') . draggable ({ revert : true , proxy : 'clone ' }) ; Drop the school subject on timetable cell $ (' .right td.drop ') .droppable({ onDragEnter :function (){ $ ( this) .addClass (' over') ; }, onDragLeave :function (){ $ (this ).removeClass ('over ') ; http://jquery-easyui.wikidot.com/tutorial:dnd3[2010-6-14 14:26:12] jQuery EasyUI: Creating a School Timetable }, onDrop : function( e,source ){ $ ( this) .removeClass ('over '); if ($ (source ).hasClass ('assigned ')){ $ (this) .append (source) ; } else { var c = $ (source ).clone () .addClass ( 'assigned' ) ; $ (this) .empty() .append (c) ; c .draggable ({ revert : true }) ; } } }); As you can see the code above, when users drag the school subject on the left and drop it to the timetable cell, the onDrop callback function will be called. We clone the source element dragged from left and append it on timetable cell. When dragging school subject from timetable cell to another cell, simply move it. Download the timetable example: easyui-timetable-demo.zip PrecisionCells.com Quartz Cuvettes Disposable Cuvettes Best Prices on Glass & Quartz Cells www.precisioncells.com page_revision: 6, last_edited: Edit Powered by Wikidot.com Tags History Files Print Site tools + Options Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License http://jquery-easyui.wikidot.com/tutorial:dnd3[2010-6-14 14:26:12] jQuery EasyUI: Create a simple menu jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Search this site Documentation Download Contact Search Forum Create a simple menu Tutorial » Create a simple menu Menu is defined in some DIV markup, just like below: < div id = " mm" style ="width:120px; " > < div onclick = "javascript:alert('new') ">New < div > < span> Open < div style =" width:150px; "> < div >< b> Word
< div >Excel < div >PowerPoint < div icon ="icon - save ">Save
< div class =" menu - sep ">
< div > Exit To create the menu you should run following jQuery code: $ (' #mm ') . menu() ; // $('#mm').menu(options); When menu is created, it is not visible, you can invoke 'show' method to show it or 'hide' method to hide it: $ (' #mm ') . menu( ' show' , { left : 200, top : 100 }) ; Now we create a menu and show it at postion(200,100). Run the code and you will see following image: Editable AJAX TreeGrid The fastest and most complex table, grid, chart or treegrid on Internet www.treegrid.com page_revision: 7, last_edited: Edit Powered by Wikidot.com Tags History Files Print Site tools + Options Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License http://jquery-easyui.wikidot.com/tutorial:menu[2010-6-14 14:26:27] jQuery EasyUI: Create a Link Button jQuery EasyUI Create account or Sign in easyui help you build your web page easily! Home Tutorial Search this site Documentation Download Contact Search Forum Create a Link Button Tutorial » Create a Link Button Normally a button is created using