• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid Demo</title>
    7. <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. <style>
    9. body {
    10. background: #e6e6e6;
    11. }
    12.  
    13. zing-grid[loading] {
    14. height: 84px;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <zing-grid group-by="grade" pager page-size="5" data='[
    21. {"first": "Maria", "last": "Doe", "grade": 12, "score": 80 },
    22. {"first": "David", "last": "Smith", "grade": 11, "score": 87 },
    23. {"first": "Felicity", "last": "Snow","grade": 11, "score": 65 },
    24. {"first": "Doe", "last": "Johnson", "grade": 12, "score": 95 },
    25. {"first": "Caitlyn", "last": "Wilson", "grade": 11, "score": 78 },
    26. {"first": "Maria", "last": "Scott", "grade": 11, "score": 57 },
    27. {"first": "Adam", "last": "Pierce", "grade": 12, "score": 85 },
    28. {"first": "Tiffany", "last": "Levine", "grade": 12, "score": 96 },
    29. {"first": "Link", "last": "Ford", "grade": 12, "score": 66 }
    30. ]'>
    31. <zg-colgroup>
    32. <zg-column index="first"></zg-column>
    33. <zg-column index="last"></zg-column>
    34. <zg-column index="score" group-head-cell="avg"></zg-column>
    35. </zg-colgroup>
    36. </zing-grid>
    37. <script>
    38. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
    39. </script>
    40. </body>
    41.  
    42. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid Demo</title>
    7. <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. </head>
    9.  
    10. <body>
    11. <zing-grid group-by="grade" pager page-size="5" data='[
    12. {"first": "Maria", "last": "Doe", "grade": 12, "score": 80 },
    13. {"first": "David", "last": "Smith", "grade": 11, "score": 87 },
    14. {"first": "Felicity", "last": "Snow","grade": 11, "score": 65 },
    15. {"first": "Doe", "last": "Johnson", "grade": 12, "score": 95 },
    16. {"first": "Caitlyn", "last": "Wilson", "grade": 11, "score": 78 },
    17. {"first": "Maria", "last": "Scott", "grade": 11, "score": 57 },
    18. {"first": "Adam", "last": "Pierce", "grade": 12, "score": 85 },
    19. {"first": "Tiffany", "last": "Levine", "grade": 12, "score": 96 },
    20. {"first": "Link", "last": "Ford", "grade": 12, "score": 66 }
    21. ]'>
    22. <zg-colgroup>
    23. <zg-column index="first"></zg-column>
    24. <zg-column index="last"></zg-column>
    25. <zg-column index="score" group-head-cell="avg"></zg-column>
    26. </zg-colgroup>
    27. </zing-grid>
    28. </body>
    29.  
    30. </html>
    1. body {
    2. background: #e6e6e6;
    3. }
    1.