collapsetitle.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Collapse Title in Layout - 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>Collapse Title in Layout</h2>
  14. <p>The title bar will display while collapse a region panel.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-layout" style="width:700px;height:350px;">
  17. <div data-options="region:'north'" style="height:50px"></div>
  18. <div data-options="region:'south',split:true" style="height:50px;"></div>
  19. <div data-options="region:'east',split:true,hideCollapsedContent:false" title="East" style="width:100px;"></div>
  20. <div data-options="region:'west',split:true,hideCollapsedContent:false,collapsed:true" title="West" style="width:100px;"></div>
  21. <div data-options="region:'center',title:'Main Title'">
  22. <table class="easyui-datagrid"
  23. data-options="url:'datagrid_data1.json',method:'get',border:false,singleSelect:true,fit:true,fitColumns:true">
  24. <thead>
  25. <tr>
  26. <th data-options="field:'itemid'" width="80">Item ID</th>
  27. <th data-options="field:'productid'" width="100">Product ID</th>
  28. <th data-options="field:'listprice',align:'right'" width="80">List Price</th>
  29. <th data-options="field:'unitcost',align:'right'" width="80">Unit Cost</th>
  30. <th data-options="field:'attr1'" width="150">Attribute</th>
  31. <th data-options="field:'status',align:'center'" width="60">Status</th>
  32. </tr>
  33. </thead>
  34. </table>
  35. </div>
  36. </div>
  37. </body>
  38. </html>