tools.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. <div class="demo-info">
  15. <div class="demo-tip icon-tip"></div>
  16. <div>Click the tools on top right of panel to perform actions.</div>
  17. </div>
  18. <div style="margin:10px 0;"></div>
  19. <div class="easyui-accordion" style="width:500px;height:300px;">
  20. <div title="About" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
  21. <h3 style="color:#0099FF;">Accordion for jQuery</h3>
  22. <p>Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.</p>
  23. </div>
  24. <div title="Help" data-options="iconCls:'icon-help'" style="padding:10px;">
  25. <p>The accordion allows you to provide multiple panels and display one 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>
  26. </div>
  27. <div title="DataGrid" style="padding:10px" data-options="
  28. selected:true,
  29. tools:[{
  30. iconCls:'icon-reload',
  31. handler:function(){
  32. $('#dg').datagrid('reload');
  33. }
  34. }]">
  35. <table id="dg" class="easyui-datagrid"
  36. data-options="url:'datagrid_data1.json',method:'get',fit:true,fitColumns:true,singleSelect:true">
  37. <thead>
  38. <tr>
  39. <th data-options="field:'itemid',width:80">Item ID</th>
  40. <th data-options="field:'productid',width:100">Product ID</th>
  41. <th data-options="field:'listprice',width:80,align:'right'">List Price</th>
  42. <th data-options="field:'unitcost',width:80,align:'right'">Unit Cost</th>
  43. <th data-options="field:'attr1',width:150">Attribute</th>
  44. <th data-options="field:'status',width:50,align:'center'">Status</th>
  45. </tr>
  46. </thead>
  47. </table>
  48. </div>
  49. </div>
  50. </body>
  51. </html>