• 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 'select' column type renders a string value and uses
        input `type="select"` as editor. Double-click cell to edit cell.</h3>
      <zing-grid editor>
        <zg-data data='[{
          "breed": "Cane Corso"
        },
        {
          "breed": "Great Dane"
        },
        {
          "breed": "Corgi"
        },
        {
          "breed": "Dachshund"
        }]'></zg-data>
        <zg-colgroup>
          <zg-column index="breed" type="select" header="Single Breed" type-select-options="Cane Corso, Great Dane, Corgi, Dachshund"></zg-column>
          <zg-column index="breed" type="select" header="Multiple Breed's" type-select-multiple type-select-options="Cane Corso, Great Dane, Corgi, Dachshund"></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 'select' column type renders a string value and uses
        input `type="select"` as editor. Double-click cell to edit cell.</h3>
      <zing-grid editor>
        <zg-data data='[{
          "breed": "Cane Corso"
        },
        {
          "breed": "Great Dane"
        },
        {
          "breed": "Corgi"
        },
        {
          "breed": "Dachshund"
        }]'></zg-data>
        <zg-colgroup>
          <zg-column index="breed" type="select" header="Single Breed" type-select-options="Cane Corso, Great Dane, Corgi, Dachshund"></zg-column>
          <zg-column index="breed" type="select" header="Multiple Breed's" type-select-multiple type-select-options="Cane Corso, Great Dane, Corgi, Dachshund"></zg-column>
        </zg-colgroup>
      </zing-grid>
    </body>
    
    </html>