• 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 'url' column type renders a value in `&lt;a&gt;` tag and uses
        input `type="text"` as editor. Double-click cell to edit cell.</h3>
      <zing-grid editor>
        <zg-data data='[{
            "page": "Your First Grid",
            "link": "/docs/your-first-grid"
          },
          {
            "page": "Types",
            "link": "/docs/column-types"
          },
          {
            "page": "API Elements",
            "link": "/docs/api-elements"
          }]'>
        </zg-data>
        <zg-colgroup>
          <zg-column index="page" header="Docs Page" type="text"></zg-column>
          <zg-column index="link" header="Link (Default)" type="url"></zg-column>
          <zg-column index="link" header="Link Text" type="url" type-url-text="Click here!"></zg-column>
          <zg-column index="link" header="Link Internal Icon" type="url" type-url-icon="link"></zg-column>
          <zg-column index="link" header="Link External Icon" type="url" type-url-icon="outsidearrow"></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 'url' column type renders a value in `&lt;a&gt;` tag and uses
        input `type="text"` as editor. Double-click cell to edit cell.</h3>
      <zing-grid editor>
        <zg-data data='[{
            "page": "Your First Grid",
            "link": "/docs/your-first-grid"
          },
          {
            "page": "Types",
            "link": "/docs/column-types"
          },
          {
            "page": "API Elements",
            "link": "/docs/api-elements"
          }]'>
        </zg-data>
        <zg-colgroup>
          <zg-column index="page" header="Docs Page" type="text"></zg-column>
          <zg-column index="link" header="Link (Default)" type="url"></zg-column>
          <zg-column index="link" header="Link Text" type="url" type-url-text="Click here!"></zg-column>
          <zg-column index="link" header="Link Internal Icon" type="url" type-url-icon="link"></zg-column>
          <zg-column index="link" header="Link External Icon" type="url" type-url-icon="outsidearrow"></zg-column>
        </zg-colgroup>
      </zing-grid>
    </body>
    
    </html>