experiment_id: web-retrieval-v1
fixture_id: /demos/web-component-grid-column-headers-nested
mode: provenance
representation: html
origin_response_id: 4bfa193d7aa40874d5ff84be5e259f71
version: 2026-10-21
version_created_at_utc: 2026-10-21T20:42:35.543Z
version_nonce: 4e2d30ec17dbb36cf49d5ab618e4bd85
generated_at_utc: 2026-11-05T09:34:45.450Z
response_nonce: 77b16e0ab182d5a7597ac312d162522a

Nested Headers

31 of 125
You can get nested headers by default with objects of objects for your data structure.
Result Full HTML CSS JS
Edit Download

Full Code

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>ZingGrid: Simple Grid</title>
  <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
  <style>
    .zg-body {
      background: #e6e6e6;
    }

    zing-grid[loading] {
      height: 413px;
    }
  </style>
</head>

<body class="zg-body">
  <zing-grid caption="EPL Top Scorers" layout="row" layout-controls="disabled" viewport-stop>
    <zg-data data='[
        {
        	"playerInfo": {
            "name": "Eden Hazard",
            "club": "Chelsea",
          	"goals": 5      
        	}              
        },
        {
          "playerInfo": {
          	"name": "Aleksandar Mitrovic",
          	"club": "Fulham",
          	"goals": 5 
          }
        },
        {
        	"playerInfo": {              
          	"name": "Sergio Agüero",
          	"club": "Manchester City",
          	"goals": 4   
					}
        },
        {
        	"playerInfo": {  
          	"name": "Romelu Lukaku",
          	"club": "Manchester United",
          	"goals": 4
          }
        },
        {
        	"playerInfo": {  
          	"name": "Sadio Mané",
          	"club": "Liverpool",
          	"goals": 4   
          }
        }
      ]'></zg-data>
  </zing-grid>
  <script>
    ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
  </script>
</body>

</html>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>ZingGrid: Simple Grid</title>
    <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
  </head>
  <body class="zg-body">
    <zing-grid 
      caption="EPL Top Scorers"
      layout="row"
      layout-controls="disabled"
      viewport-stop>
      <zg-data 
        data='[
        {
        	"playerInfo": {
            "name": "Eden Hazard",
            "club": "Chelsea",
          	"goals": 5      
        	}              
        },
        {
          "playerInfo": {
          	"name": "Aleksandar Mitrovic",
          	"club": "Fulham",
          	"goals": 5 
          }
        },
        {
        	"playerInfo": {              
          	"name": "Sergio Agüero",
          	"club": "Manchester City",
          	"goals": 4   
					}
        },
        {
        	"playerInfo": {  
          	"name": "Romelu Lukaku",
          	"club": "Manchester United",
          	"goals": 4
          }
        },
        {
        	"playerInfo": {  
          	"name": "Sadio Mané",
          	"club": "Liverpool",
          	"goals": 4   
          }
        }
      ]'></zg-data>
    </zing-grid>
  </body>
</html>
.zg-body {background:#e6e6e6;}
// No JS code

Interested in this demo? Modify it to your needs in ZingSoft Studio, our testing sandbox. It's free to sign up, and you can come back and edit at any time!

Edit in Studio

Demo Gallery