• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft demo</title>
      <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
      <style>
        zing-grid[loading] {
          height: 277px;
        }
      </style>
    </head>
    
    <body>
      <h3>`[typeColorMode] sets color mode of the color picker, which is displayed when editing the cell.</h3>
      <p>Double-click cell to open the color picker.</p>
    
      <zing-grid editor>
        <zg-caption>typeColorMode Demo</zg-caption>
        <zg-colgroup>
          <zg-column index="color" type="color" type-color-mode="rgba">
          </zg-column>
        </zg-colgroup>
        <zg-data data='[
            {
              "color": "rgba(28, 78, 99, 1)"
            },
            {
              "color": "hsl(193,100%,47%)"
            },
            {
              "color": "#09885a"
            }
          ]'>
        </zg-data>
      </zing-grid>
      <script>
        ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft demo</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    </head>
    
    <body>
      <h3>`[typeColorMode] sets color mode of the color picker, which is displayed when editing the cell.</h3>
      <p>Double-click cell to open the color picker.</p>
    
      <zing-grid editor>
        <zg-caption>typeColorMode Demo</zg-caption>
        <zg-colgroup>
          <zg-column index="color" type="color" type-color-mode="rgba">
          </zg-column>
        </zg-colgroup>
        <zg-data data='[
            {
              "color": "rgba(28, 78, 99, 1)"
            },
            {
              "color": "hsl(193,100%,47%)"
            },
            {
              "color": "#09885a"
            }
          ]'>
        </zg-data>
      </zing-grid>
    </body>
    
    </html>