• 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>
        html,
        body {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
        }
    
        zing-grid[loading] {
          height: 261px;
        }
      </style>
    </head>
    
    <body>
      <zing-grid selector>
        <zg-colgroup>
          <zg-column index="name" header="Name"></zg-column>
          <zg-column index="num" header="Phone #"></zg-column>
        </zg-colgroup>
        <zg-data data='[{"name": "Michael Smith", "num": "626-538-7713"}, {"name": "James Johnson", "num": "408-612-9244"}, {"name": "Maria Hernandez", "num": "626-184-8190"}, {"name": "David Jenkins", "num": "419-278-1001"}]'></zg-data>
      </zing-grid>
      <script>
        ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
      </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>
      <zing-grid selector>
        <zg-colgroup>
          <zg-column index="name" header="Name"></zg-column>
          <zg-column index="num" header="Phone #"></zg-column>
        </zg-colgroup>
        <zg-data data='[{"name": "Michael Smith", "num": "626-538-7713"}, {"name": "James Johnson", "num": "408-612-9244"}, {"name": "Maria Hernandez", "num": "626-184-8190"}, {"name": "David Jenkins", "num": "419-278-1001"}]'></zg-data>
      </zing-grid>
    </body>
    
    </html>
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }