• 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: 277px;
        }
      </style>
    </head>
    
    <body>
      <zing-grid caption="typeCheckboxLabel Demo">
        <zg-colgroup>
          <zg-column index="complete" type="checkbox" type-checkbox-label="Complete?"></zg-column>
          <zg-column index="todo"></zg-column>
        </zg-colgroup>
        <zg-data data='[
            {"complete": 1, "todo": "Wash dishes"},
            {"complete": 0, "todo": "Grocery Shop"},
            {"complete": 1, "todo": "Do Laundry"}
          ]'></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 caption="typeCheckboxLabel Demo">
        <zg-colgroup>
          <zg-column index="complete" type="checkbox" type-checkbox-label="Complete?"></zg-column>
          <zg-column index="todo"></zg-column>
        </zg-colgroup>
        <zg-data data='[
            {"complete": 1, "todo": "Wash dishes"},
            {"complete": 0, "todo": "Grocery Shop"},
            {"complete": 1, "todo": "Do Laundry"}
          ]'></zg-data>
      </zing-grid>
    </body>
    
    </html>
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }