• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid: Blank Grid</title>
      <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
      <style>
        body {
          background: #e6e6e6;
        }
    
        zing-grid {
          background: #eeeeee;
          font-size: 1.2rem;
          padding: 10px;
          box-shadow: 0 0 9px rgba(0, 0, 0, .15);
        }
    
        zg-caption {
          background-color: darkorange;
          color: white;
          font-weight: bold;
          opacity: 0.6;
          text-align: center;
          transition: 0.3s opacity;
          font-size: 2rem;
        }
    
        zg-caption:hover {
          opacity: 1;
        }
    
        zg-head {
          color: orange;
        }
    
        zg-cell {
          color: blue;
          transition: 1s background-color;
        }
    
        zg-cell:hover {
          background-color: orange;
        }
    
        zg-body zg-row:nth-child(odd) {
          background-color: lightblue;
        }
    
        zg-pager {
          background: #bdbdbd;
        }
    
        zing-grid[loading] {
          height: 636px;
        }
      </style>
    </head>
    
    <body>
      <!-- Most features can be toggled on the toplevel zing-grid tag -->
      <zing-grid caption="Employees" columns-control column-drag layout-controls pager page-size="4" page-size-options="2,4,8" search sort src="https://cdn.zinggrid.com/datasets/users.json">
        <zg-colgroup>
          <zg-column index="img" header=" " menu-text="Img" type="image" cell-class="profile-avatar" content-width="50px" sort="disabled"></zg-column>
          <zg-column index="name,actor" header="Character" cell-class="character-info">
            <span class="character-info--header"><strong>Name:</strong> [[index.name]]</span>
            <br>
            <span class="character-info--subheader"><strong>Voice By:</strong> [[index.actor]]</span>
          </zg-column>
          <zg-column index="description" width="300"></zg-column>
          <zg-column header="1st Episode" index="episode_link" 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: Blank Grid</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    </head>
    
    <body>
      <!-- Most features can be toggled on the toplevel zing-grid tag -->
      <zing-grid caption="Employees" columns-control column-drag layout-controls pager page-size="4" page-size-options="2,4,8" search sort src="https://cdn.zinggrid.com/datasets/users.json">
        <zg-colgroup>
          <zg-column index="img" header=" " menu-text="Img" type="image" cell-class="profile-avatar" content-width="50px" sort="disabled"></zg-column>
          <zg-column index="name,actor" header="Character" cell-class="character-info">
            <span class="character-info--header"><strong>Name:</strong> [[index.name]]</span>
            <br>
            <span class="character-info--subheader"><strong>Voice By:</strong> [[index.actor]]</span>
          </zg-column>
          <zg-column index="description" width="300"></zg-column>
          <zg-column header="1st Episode" index="episode_link" type="url" type-url-icon="outsidearrow">
          </zg-column>
        </zg-colgroup>
      </zing-grid>
    </body>
    
    </html>
    body {
      background: #e6e6e6;
    }
    
    zing-grid {
      background: #eeeeee;
      font-size: 1.2rem;
      padding: 10px;
      box-shadow: 0 0 9px rgba(0, 0, 0, .15);
    }
    
    zg-caption {
      background-color: darkorange;
      color: white;
      font-weight: bold;
      opacity: 0.6;
      text-align: center;
      transition: 0.3s opacity;
      font-size: 2rem;
    }
    
    zg-caption:hover {
      opacity: 1;
    }
    
    zg-head {
      color: orange;
    }
    
    zg-cell {
      color: blue;
      transition: 1s background-color;
    }
    
    zg-cell:hover {
      background-color: orange;
    }
    
    zg-body zg-row:nth-child(odd) {
      background-color: lightblue;
    }
    
    zg-pager {
      background: #bdbdbd;
    }