• 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: nullpx;
        }
      </style>
    </head>
    
    <body>
      <zing-grid caption="Store Items" filter="summary" layout="card">
        <zg-colgroup>
          <zg-column index="item" header="Item"></zg-column>
          <zg-column index="color" header="Color"></zg-column>
          <zg-column index="size" header="Size"></zg-column>
          <zg-column index="price" header="Price" type="currency" type-currency="USD"></zg-column>
        </zg-colgroup>
        <zg-data data='[{
    	      "item": "shirt",
    	      "color": "red", 
    	      "size": "medium",
    	      "price": "5"
          }, {
    	      "item": "hat",
    	      "color": "brown", 
    	      "size": "na",
    	      "price": "10"
          }, {
    	      "item": "shirt",
    	      "color": "blue", 
    	      "size": "small",
    	      "price": "5"
          }, {
    	      "item": "jeans",
    	      "color": "blue", 
    	      "size": "large",
    	      "price": "25"
          }, {
    	      "item": "scarf",
    	      "color": "purple", 
    	      "size": "na",
    	      "price": "12"
          }, {
    	      "item": "shirt",
    	      "color": "pink", 
    	      "size": "medium",
    	      "price": "14"
          }, {
    	      "item": "jeans",
    	      "color": "black", 
    	      "size": "large",
    	      "price": "40"
          }, {
    	      "item": "jacket",
    	      "color": "black", 
    	      "size": "medium",
    	      "price": "100"
          }, {
    	      "item": "jeans",
    	      "color": "red", 
    	      "size": "small",
    	      "price": "35"
          }, {
    	      "item": "shirt",
    	      "color": "yellow", 
    	      "size": "medium",
    	      "price": "16"
          }, {
    	      "item": "jacket",
    	      "color": "red", 
    	      "size": "large",
    	      "price": "30"
          }]'></zg-data>
      </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>
      <zing-grid caption="Store Items" filter="summary" layout="card">
        <zg-colgroup>
          <zg-column index="item" header="Item"></zg-column>
          <zg-column index="color" header="Color"></zg-column>
          <zg-column index="size" header="Size"></zg-column>
          <zg-column index="price" header="Price" type="currency" type-currency="USD"></zg-column>
        </zg-colgroup>
        <zg-data data='[{
    	      "item": "shirt",
    	      "color": "red", 
    	      "size": "medium",
    	      "price": "5"
          }, {
    	      "item": "hat",
    	      "color": "brown", 
    	      "size": "na",
    	      "price": "10"
          }, {
    	      "item": "shirt",
    	      "color": "blue", 
    	      "size": "small",
    	      "price": "5"
          }, {
    	      "item": "jeans",
    	      "color": "blue", 
    	      "size": "large",
    	      "price": "25"
          }, {
    	      "item": "scarf",
    	      "color": "purple", 
    	      "size": "na",
    	      "price": "12"
          }, {
    	      "item": "shirt",
    	      "color": "pink", 
    	      "size": "medium",
    	      "price": "14"
          }, {
    	      "item": "jeans",
    	      "color": "black", 
    	      "size": "large",
    	      "price": "40"
          }, {
    	      "item": "jacket",
    	      "color": "black", 
    	      "size": "medium",
    	      "price": "100"
          }, {
    	      "item": "jeans",
    	      "color": "red", 
    	      "size": "small",
    	      "price": "35"
          }, {
    	      "item": "shirt",
    	      "color": "yellow", 
    	      "size": "medium",
    	      "price": "16"
          }, {
    	      "item": "jacket",
    	      "color": "red", 
    	      "size": "large",
    	      "price": "30"
          }]'></zg-data>
      </zing-grid>
    
    </body>
    
    </html>