groupformat.html 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Group Format - 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>Group Format</h2>
  14. <div class="demo-info">
  15. <div class="demo-tip icon-tip"></div>
  16. <div>The user can change the group information.</div>
  17. </div>
  18. <div style="margin:10px 0;"></div>
  19. <table class="easyui-propertygrid" style="width:300px" data-options="
  20. url: 'propertygrid_data1.json',
  21. method: 'get',
  22. showGroup: true,
  23. scrollbarSize: 0,
  24. groupFormatter: groupFormatter
  25. ">
  26. </table>
  27. <script>
  28. function groupFormatter(fvalue, rows){
  29. return fvalue + ' - <span style="color:red">' + rows.length + ' rows</span>';
  30. }
  31. </script>
  32. </body>
  33. </html>