groupformat.html 964 B

123456789101112131415161718192021222324252627282930
  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. <p>The user can change the group information.</p>
  15. <div style="margin:20px 0;"></div>
  16. <table class="easyui-propertygrid" style="width:300px" data-options="
  17. url: 'propertygrid_data1.json',
  18. method: 'get',
  19. showGroup: true,
  20. scrollbarSize: 0,
  21. groupFormatter: groupFormatter
  22. ">
  23. </table>
  24. <script>
  25. function groupFormatter(fvalue, rows){
  26. return fvalue + ' - <span style="color:red">' + rows.length + ' rows</span>';
  27. }
  28. </script>
  29. </body>
  30. </html>