• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid Demo</title>
      <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
      <style>
        body {
          background: #e6e6e6;
        }
    
        zing-grid[loading] {
          height: 357px;
        }
      </style>
    </head>
    
    <body>
    
      <h3>`[dialog]` sets ZGDialog to be within the grid dimentions instead of
        the whole page. Double-click ZGCell to open ZGDialog.</h3>
      <zing-grid dialog editor="modal">
        <zg-data data='[
            {
              "name": "Maria",
              "number": 123
            },
            {
              "name": "Juanita",
              "number": 456
            },
            {
              "name": "Felicity",
              "number": 789
            },
            {
              "name": "John",
              "number": 111
            },
            {
              "name": "Jane",
              "number": 222
            },
            {
              "name": "Doe",
              "number": 333
            }
          ]'></zg-data>
      </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 Demo</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    </head>
    
    <body>
    
      <h3>`[dialog]` sets ZGDialog to be within the grid dimentions instead of
        the whole page. Double-click ZGCell to open ZGDialog.</h3>
      <zing-grid dialog editor="modal">
        <zg-data data='[
            {
              "name": "Maria",
              "number": 123
            },
            {
              "name": "Juanita",
              "number": 456
            },
            {
              "name": "Felicity",
              "number": 789
            },
            {
              "name": "John",
              "number": 111
            },
            {
              "name": "Jane",
              "number": 222
            },
            {
              "name": "Doe",
              "number": 333
            }
          ]'></zg-data>
      </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
    });