• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid: Blank Grid</title>
    7. <script nonce="undefined" src="https://cdn.zinggrid.com/dev/zinggrid-dev.min.js"></script>
    8. <style>
    9. body {
    10. background: #e6e6e6;
    11. }
    12.  
    13. zing-grid[loading] {
    14. height: 456px;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20.  
    21. <zing-grid caption="Remote JSON" layout="row" layout-controls>
    22. <zg-data src="https://cdn.zinggrid.com/datasets/remote-data.json"></zg-data>
    23. </zing-grid>
    24.  
    25. <script>
    26. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']); // window:load event for Javascript to run after HTML
    27. // because this Javascript is injected into the document head
    28. window.addEventListener('load', () => {
    29. // Javascript code to execute after DOM content
    30.  
    31. });
    32. </script>
    33. </body>
    34.  
    35. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid: Blank Grid</title>
    7. <script src="https://cdn.zinggrid.com/dev/zinggrid-dev.min.js"></script>
    8. </head>
    9.  
    10. <body>
    11.  
    12. <zing-grid caption="Remote JSON" layout="row" layout-controls>
    13. <zg-data src="https://cdn.zinggrid.com/datasets/remote-data.json"></zg-data>
    14. </zing-grid>
    15.  
    16. </body>
    17.  
    18. </html>
    1. body {
    2. background: #e6e6e6;
    3. }
    1. // window:load event for Javascript to run after HTML
    2. // because this Javascript is injected into the document head
    3. window.addEventListener('load', () => {
    4. // Javascript code to execute after DOM content
    5.  
    6. });