basic.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. <p>TreeGrid allows you to expand or collapse group rows.</p>
  15. <div style="margin:20px 0;"></div>
  16. <table title="Folder Browser" class="easyui-treegrid" style="width:700px;height:250px"
  17. data-options="
  18. url: 'treegrid_data1.json',
  19. method: 'get',
  20. rownumbers: true,
  21. idField: 'id',
  22. treeField: 'name'
  23. ">
  24. <thead>
  25. <tr>
  26. <th data-options="field:'name'" width="220">Name</th>
  27. <th data-options="field:'size'" width="100" align="right">Size</th>
  28. <th data-options="field:'date'" width="150">Modified Date</th>
  29. </tr>
  30. </thead>
  31. </table>
  32. </body>
  33. </html>