• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html class="zg-html">
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid: Blank Grid</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: 795px;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body class="zg-body">
    20.  
    21. <h3>When `[context-menu]` is enabled, rows can be frozen through the menu (right click).</h3>
    22. <zing-grid context-menu frozen-rows-top=1 frozen-rows-bottom=2 height=500>
    23. <zg-caption>frozenRows Demo</zg-caption>
    24. <zg-data src="https://cdn.zinggrid.com/datasets/got-deaths.json"></zg-data>
    25. <zg-colgroup>
    26. <zg-column index="order"></zg-column>
    27. <zg-column index="season"></zg-column>
    28. <zg-column index="episode"></zg-column>
    29. <zg-column index="character_killed"></zg-column>
    30. <zg-column index="killer"></zg-column>
    31. <zg-column index="method"></zg-column>
    32. <zg-column index="method_cat"></zg-column>
    33. <zg-column index="reason"></zg-column>
    34. <zg-column index="location"></zg-column>
    35. <zg-column index="allegiance"></zg-column>
    36. <zg-column index="importance"></zg-column>
    37. </zg-colgroup>
    38. </zing-grid>
    39.  
    40. <script>
    41. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
    42. </script>
    43. </body>
    44.  
    45. </html>
    1. <!DOCTYPE html>
    2. <html class="zg-html">
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid: Blank Grid</title>
    7. <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. </head>
    9.  
    10. <body class="zg-body">
    11.  
    12. <h3>When `[context-menu]` is enabled, rows can be frozen through the menu (right click).</h3>
    13. <zing-grid context-menu frozen-rows-top=1 frozen-rows-bottom=2 height=500>
    14. <zg-caption>frozenRows Demo</zg-caption>
    15. <zg-data src="https://cdn.zinggrid.com/datasets/got-deaths.json"></zg-data>
    16. <zg-colgroup>
    17. <zg-column index="order"></zg-column>
    18. <zg-column index="season"></zg-column>
    19. <zg-column index="episode"></zg-column>
    20. <zg-column index="character_killed"></zg-column>
    21. <zg-column index="killer"></zg-column>
    22. <zg-column index="method"></zg-column>
    23. <zg-column index="method_cat"></zg-column>
    24. <zg-column index="reason"></zg-column>
    25. <zg-column index="location"></zg-column>
    26. <zg-column index="allegiance"></zg-column>
    27. <zg-column index="importance"></zg-column>
    28. </zg-colgroup>
    29. </zing-grid>
    30.  
    31. </body>
    32.  
    33. </html>
    1. body {
    2. background: #e6e6e6;
    3. }
    1.