• 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 Recordpath" layout="row" layout-controls>
    22. <zg-data src="https://cdn.zinggrid.com/datasets/remote-data-recordpath.json">
    23. <zg-param name="recordPath" value="company.employees"></zg-param>
    24. </zg-data>
    25. </zing-grid>
    26.  
    27. <script>
    28. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']); // window:load event for Javascript to run after HTML
    29. // because this Javascript is injected into the document head
    30. window.addEventListener('load', () => {
    31. // Javascript code to execute after DOM content
    32.  
    33. });
    34. </script>
    35. </body>
    36.  
    37. </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 Recordpath" layout="row" layout-controls>
    13. <zg-data src="https://cdn.zinggrid.com/datasets/remote-data-recordpath.json">
    14. <zg-param name="recordPath" value="company.employees"></zg-param>
    15. </zg-data>
    16. </zing-grid>
    17.  
    18. </body>
    19.  
    20. </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. });