tools.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Accordion Tools - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Accordion Tools</h2>
  14. <p>Click the tools on top right of panel to perform actions.</p>
  15. <div style="margin:20px 0 10px 0;"></div>
  16. <div class="easyui-accordion" style="width:500px;height:300px;">
  17. <div title="About" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
  18. <h3 style="color:#0099FF;">Accordion for jQuery</h3>
  19. <p>Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.</p>
  20. </div>
  21. <div title="Help" data-options="iconCls:'icon-help'" style="padding:10px;">
  22. <p>The accordion allows you to provide multiple panels and display one ore more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.</p>
  23. </div>
  24. <div title="DataGrid" style="padding:10px" data-options="
  25. selected:true,
  26. tools:[{
  27. iconCls:'icon-reload',
  28. handler:function(){
  29. $('#dg').datagrid('reload');
  30. }
  31. }]">
  32. <table id="dg" class="easyui-datagrid"
  33. data-options="url:'datagrid_data1.json',method:'get',fit:true,fitColumns:true,singleSelect:true">
  34. <thead>
  35. <tr>
  36. <th data-options="field:'itemid',width:80">Item ID</th>
  37. <th data-options="field:'productid',width:100">Product ID</th>
  38. <th data-options="field:'listprice',width:80,align:'right'">List Price</th>
  39. <th data-options="field:'unitcost',width:80,align:'right'">Unit Cost</th>
  40. <th data-options="field:'attr1',width:150">Attribute</th>
  41. <th data-options="field:'status',width:50,align:'center'">Status</th>
  42. </tr>
  43. </thead>
  44. </table>
  45. </div>
  46. </div>
  47. </body>
  48. </html>