• Edit
  • Download
  • <!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>
        body {
          background: #e6e6e6;
        }
    
        zing-grid {
          /* even/odd styling */
          --zg-row-body-background_odd: #ef9a9a;
          --zg-row-body-background_odd_hover: #e57373;
          --zg-row-body-background_even: #fff59d;
          --zg-row-body-background_even_hover: #fff176;
    
          /* general styling */
          --zg-row-body-color_odd: #616161;
          --zg-row-body-color_odd_hover: #424242;
        }
    
        zing-grid[loading] {
          height: 373px;
        }
      </style>
    </head>
    
    <body>
      <zing-grid caption="EPL Top Scorers">
        <zg-data data='[
            {
              "playerName": "Eden Hazard",
              "playerClub": "Chelsea",
              "goalsScored": 5          
            },
            {
              "playerName": "Aleksandar Mitrovic",
              "playerClub": "Fulham",
              "goalsScored": 5   
            },
            {
              "playerName": "Sergio Agüero",
              "playerClub": "Manchester City",
              "goalsScored": 4   
            },
            {
              "playerName": "Romelu Lukaku",
              "playerClub": "Manchester United",
              "goalsScored": 4   
            },
            {
              "playerName": "Sadio Mané",
              "playerClub": "Liverpool",
              "goalsScored": 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>
      <zing-grid caption="EPL Top Scorers">
        <zg-data data='[
            {
              "playerName": "Eden Hazard",
              "playerClub": "Chelsea",
              "goalsScored": 5          
            },
            {
              "playerName": "Aleksandar Mitrovic",
              "playerClub": "Fulham",
              "goalsScored": 5   
            },
            {
              "playerName": "Sergio Agüero",
              "playerClub": "Manchester City",
              "goalsScored": 4   
            },
            {
              "playerName": "Romelu Lukaku",
              "playerClub": "Manchester United",
              "goalsScored": 4   
            },
            {
              "playerName": "Sadio Mané",
              "playerClub": "Liverpool",
              "goalsScored": 4   
            }
          ]'></zg-data>
      </zing-grid>
    </body>
    
    </html>
    body {
      background: #e6e6e6;
    }
    
    zing-grid {
      /* even/odd styling */
      --zg-row-body-background_odd: #ef9a9a;
      --zg-row-body-background_odd_hover: #e57373;
      --zg-row-body-background_even: #fff59d;
      --zg-row-body-background_even_hover: #fff176;
    
      /* general styling */
      --zg-row-body-color_odd: #616161;
      --zg-row-body-color_odd_hover: #424242;
    }