• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid: Blank Grid</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js" defer></script>
      <style>
        body {
          background: #e6e6e6;
        }
    
        zing-grid[loading] {
          height: 612px;
        }
      </style>
    </head>
    
    <body>
      <!-- Most features can be toggled on the toplevel zing-grid tag -->
      <zing-grid columns-control filter layout-controls pager page-size="4" page-size-card="8" page-size-options="2,4,8,16" search sort>
        <zg-caption>
          <div>
            <h2><code>zg-text</code> example
              <h2>
                <ul>
                  <li>Row Count:
                    <zg-text value="rowcount"></zg-text>
                  </li>
                  <li>Start Row:
                    <zg-text value="startrow"></zg-text>
                  </li>
                  <li>End Row:
                    <zg-text value="endrow"></zg-text>
                  </li>
                </ul>
          </div>
        </zg-caption>
        <!-- dataset -->
        <zg-data data='[
          	{ "breed": "Cane Corso", "name": "Ziva"},
          	{ "breed": "Pug", "name": "Doug"},
          	{ "breed": "Corgi", "name": "Jenny"},
          	{ "breed": "Pomeranian", "name": "Koda"},
          	{ "breed": "Great Dane", "name": "Zeus"},
          	{ "breed": "Frenchie", "name": "Bruce"},
          	{ "breed": "Cane Corso", "name": "Sofia"},
          	{ "breed": "Pomeranian", "name": "Snowball"}
          ]'></zg-data>
        <!-- If you don't want to use all columns from dataset, user must define columns here -->
        <zg-colgroup>
          <zg-column index="breed" type="select" type-select-options="Cane Corso, Corgi, Frenchie, Great Dane, Pomeranian, Pug"></zg-column>
          <zg-column index="name" filter="disabled"></zg-column>
          <zg-column index="custom" header="Combined" filter="disabled">
            <div>[[record.breed]] - [[record.name]]</div>
          </zg-column>
        </zg-colgroup>
      </zing-grid>
    
      <script></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" defer></script>
    </head>
    
    <body>
      <!-- Most features can be toggled on the toplevel zing-grid tag -->
      <zing-grid columns-control filter layout-controls pager page-size="4" page-size-card="8" page-size-options="2,4,8,16" search sort>
        <zg-caption>
          <div>
            <h2><code>zg-text</code> example
              <h2>
                <ul>
                  <li>Row Count:
                    <zg-text value="rowcount"></zg-text>
                  </li>
                  <li>Start Row:
                    <zg-text value="startrow"></zg-text>
                  </li>
                  <li>End Row:
                    <zg-text value="endrow"></zg-text>
                  </li>
                </ul>
          </div>
        </zg-caption>
        <!-- dataset -->
        <zg-data data='[
          	{ "breed": "Cane Corso", "name": "Ziva"},
          	{ "breed": "Pug", "name": "Doug"},
          	{ "breed": "Corgi", "name": "Jenny"},
          	{ "breed": "Pomeranian", "name": "Koda"},
          	{ "breed": "Great Dane", "name": "Zeus"},
          	{ "breed": "Frenchie", "name": "Bruce"},
          	{ "breed": "Cane Corso", "name": "Sofia"},
          	{ "breed": "Pomeranian", "name": "Snowball"}
          ]'></zg-data>
        <!-- If you don't want to use all columns from dataset, user must define columns here -->
        <zg-colgroup>
          <zg-column index="breed" type="select" type-select-options="Cane Corso, Corgi, Frenchie, Great Dane, Pomeranian, Pug"></zg-column>
          <zg-column index="name" filter="disabled"></zg-column>
          <zg-column index="custom" header="Combined" filter="disabled">
            <div>[[record.breed]] - [[record.name]]</div>
          </zg-column>
        </zg-colgroup>
      </zing-grid>
    
    </body>
    
    </html>
    body {
      background: #e6e6e6;
    }