fluid.html 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Fluid 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>Fluid TreeGrid</h2>
  14. <p>This example shows how to assign percentage width to a column in TreeGrid.</p>
  15. <div style="margin:20px 0;"></div>
  16. <table title="Fluid Browser" class="easyui-treegrid" style="width:700px;height:250px"
  17. data-options="
  18. url: 'treegrid_data1.json',
  19. method: 'get',
  20. idField: 'id',
  21. treeField: 'name'
  22. ">
  23. <thead>
  24. <tr>
  25. <th data-options="field:'name'" width="50%">Name(50%)</th>
  26. <th data-options="field:'size'" width="20%" align="right">Size(20%)</th>
  27. <th data-options="field:'date'" width="30%">Modified Date(30%)</th>
  28. </tr>
  29. </thead>
  30. </table>
  31. </body>
  32. </html>