• 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>
        zing-grid[loading] {
          height: 261px;
        }
      </style>
    </head>
    
    <body>
      <h3>The 'editor' column type renders `&lt;zg-button action="editrecord"&gt;`
        to add rows.</h3>
      <zing-grid>
        <zg-data data='[{
          "quantity": 4
        },
        {
          "quantity": 8
        },
        {
          "quantity": 9
        },
        {
          "quantity": 3
        }]'></zg-data>
        <zg-colgroup>
          <zg-column index="quantity" type="number"></zg-column>
          <zg-column type="editor"></zg-column>
        </zg-colgroup>
      </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>
      <h3>The 'editor' column type renders `&lt;zg-button action="editrecord"&gt;`
        to add rows.</h3>
      <zing-grid>
        <zg-data data='[{
          "quantity": 4
        },
        {
          "quantity": 8
        },
        {
          "quantity": 9
        },
        {
          "quantity": 3
        }]'></zg-data>
        <zg-colgroup>
          <zg-column index="quantity" type="number"></zg-column>
          <zg-column type="editor"></zg-column>
        </zg-colgroup>
      </zing-grid>
    </body>
    
    </html>