basic.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Basic TreeGrid - 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>Basic TreeGrid</h2>
  14. <div class="demo-info">
  15. <div class="demo-tip icon-tip"></div>
  16. <div>TreeGrid allows you to expand or collapse group rows.</div>
  17. </div>
  18. <div style="margin:10px 0;"></div>
  19. <table title="Folder Browser" class="easyui-treegrid" style="width:700px;height:250px"
  20. data-options="
  21. url: 'treegrid_data1.json',
  22. method: 'get',
  23. rownumbers: true,
  24. idField: 'id',
  25. treeField: 'name'
  26. ">
  27. <thead>
  28. <tr>
  29. <th data-options="field:'name'" width="220">Name</th>
  30. <th data-options="field:'size'" width="100" align="right">Size</th>
  31. <th data-options="field:'date'" width="150">Modified Date</th>
  32. </tr>
  33. </thead>
  34. </table>
  35. </body>
  36. </html>