• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid Demo</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js" defer></script>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js" defer></script>
      <style>
        html,
        body {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
        }
    
        zing-grid[loading] {
          height: 282px;
        }
      </style>
    </head>
    
    <body>
      <zing-grid>
        <zg-colgroup>
          <zg-column index="name" type="element" type-element-tag-name="h1"></zg-column>
          <zg-column index="number" type="element" type-element-tag-name="em"></zg-column>
          <zg-column index="age"></zg-column>
        </zg-colgroup>
        <zg-data data='[{"name": "Maria","number": 123, "age": 5}, {"name": "Juanita","number": 456, "age": 36}, {"name": "Felicity","number": 789, "age": 44}]'></zg-data>
      </zing-grid>
      <script></script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid Demo</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js" defer></script>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js" defer></script>
    </head>
    
    <body>
      <zing-grid>
        <zg-colgroup>
          <zg-column index="name" type="element" type-element-tag-name="h1"></zg-column>
          <zg-column index="number" type="element" type-element-tag-name="em"></zg-column>
          <zg-column index="age"></zg-column>
        </zg-colgroup>
        <zg-data data='[{"name": "Maria","number": 123, "age": 5}, {"name": "Juanita","number": 456, "age": 36}, {"name": "Felicity","number": 789, "age": 44}]'></zg-data>
      </zing-grid>
    </body>
    
    </html>
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }