• 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: 213px;
        }
      </style>
    </head>
    
    <body>
      <h3>The 'button' column type renders a button and cell editor is disabled, but modal editor contains fields for
        indices used to render button (label, disabled, icon, url).</h3>
      <zing-grid>
        <zg-data data='[
            {"label": "Funnel", "disabled": true, "icon": "search", "url": "https://app.zingsoft.com/demos/view/LCZFYGR5"},
            {"label": "Waterfall", "disabled": false, "icon": "reload", "url": "https://app.zingsoft.com/view/view/35YECDDD"},
            {"label": "Bar", "disabled": 1, "icon": "menu", "url": "https://app.zingsoft.com/demos/view/Y3EWRJOL"}
          ]'>
        </zg-data>
        <zg-colgroup>
          <zg-column type="button" index="label,disabled,icon,url" header="Button" type-button-disabled="[[index.disabled]]" type-button-icon="[[index.icon]]" type-button-url="[[index.url]]"></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 'button' column type renders a button and cell editor is disabled, but modal editor contains fields for
        indices used to render button (label, disabled, icon, url).</h3>
      <zing-grid>
        <zg-data data='[
            {"label": "Funnel", "disabled": true, "icon": "search", "url": "https://app.zingsoft.com/demos/view/LCZFYGR5"},
            {"label": "Waterfall", "disabled": false, "icon": "reload", "url": "https://app.zingsoft.com/view/view/35YECDDD"},
            {"label": "Bar", "disabled": 1, "icon": "menu", "url": "https://app.zingsoft.com/demos/view/Y3EWRJOL"}
          ]'>
        </zg-data>
        <zg-colgroup>
          <zg-column type="button" index="label,disabled,icon,url" header="Button" type-button-disabled="[[index.disabled]]" type-button-icon="[[index.icon]]" type-button-url="[[index.url]]"></zg-column>
        </zg-colgroup>
      </zing-grid>
    </body>
    
    </html>