• 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>
        <style>
            zing-grid[loading] {
                height: 213px;
            }
        </style>
    </head>
    
    <body>
        <zing-grid>
            <zg-data data='[{
          "item": "strawberry",
          "image": "https://png.icons8.com/strawberry/office/30"
        },
        {
          "item": "bacon",
          "image": "https://png.icons8.com/bacon/office/30"
        },
        {
          "item": "sword",
          "image": "https://png.icons8.com/sword/office/30",
          "customstyle": "border: 1px dashed gray"
        }]'></zg-data>
            <zg-colgroup>
                <zg-column index="item" header="Item"></zg-column>
                <zg-column index="image" header="Image" type="image" type-image-alt="missing image"></zg-column>
            </zg-colgroup>
        </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>
    	</head>
    	<body>
      <zing-grid>
        <zg-data data='[{
          "item": "strawberry",
          "image": "https://png.icons8.com/strawberry/office/30"
        },
        {
          "item": "bacon",
          "image": "https://png.icons8.com/bacon/office/30"
        },
        {
          "item": "sword",
          "image": "https://png.icons8.com/sword/office/30",
          "customstyle": "border: 1px dashed gray"
        }]'></zg-data>
        <zg-colgroup>
          <zg-column index="item" header="Item"></zg-column>
          <zg-column index="image" header="Image" type="image" type-image-alt="missing image"></zg-column>
        </zg-colgroup>
      </zing-grid>
    	</body>
    </html>