• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid: Blank Grid</title>
      <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
      <style>
        body {
          background: #e6e6e6;
        }
    
        zing-grid[loading] {
          height: 178px;
        }
      </style>
    </head>
    
    <body>
    
      <zing-grid data='[
          {
            "name": "Philip",
            "number": 123,
            "colors": {
              "primary": "red",
              "secondary": "chartreuse"
            }
          },
          {
            "name": "Bender",
            "number": 456,
            "colors": {
              "primary": "black",
              "secondary": "yellow"
            }
          }
        ]'>
        <zg-column index="colors.primary" header="colors.primary"></zg-column>
        <zg-column index="colors.secondary" header="colors.secondary"></zg-column>
      </zing-grid>
    
      <script>
        ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']); // window:load event for Javascript to run after HTML
        // because this Javascript is injected into the document head
        window.addEventListener('load', () => {
          // Javascript code to execute after DOM content
        });
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid: Blank Grid</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    </head>
    
    <body>
    
      <zing-grid data='[
          {
            "name": "Philip",
            "number": 123,
            "colors": {
              "primary": "red",
              "secondary": "chartreuse"
            }
          },
          {
            "name": "Bender",
            "number": 456,
            "colors": {
              "primary": "black",
              "secondary": "yellow"
            }
          }
        ]'>
        <zg-column index="colors.primary" header="colors.primary"></zg-column>
        <zg-column index="colors.secondary" header="colors.secondary"></zg-column>
      </zing-grid>
    
    </body>
    
    </html>
    body {
      background: #e6e6e6;
    }
    // window:load event for Javascript to run after HTML
    // because this Javascript is injected into the document head
    window.addEventListener('load', () => {
      // Javascript code to execute after DOM content
    });