• 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;
        }
    
        .correct {
          background-color: #fffced;
          border-left: 1px solid #fff0a3;
          border-right: 1px solid #fff0a3;
        }
    
        zing-grid[loading] {
          height: 298px;
        }
      </style>
    </head>
    
    <body>
    
      <zing-grid caption="Numbered Strings" sort>
        <zg-data data='[
            { "number": "4510" },
            { "number": "210" },
            { "number": "0" },
            { "number": "649" }
          ]'></zg-data>
        <zg-colgroup>
          <zg-column index="number" header="Incorrect"></zg-column>
          <zg-column index="number" type="number" header="Correct" cell-class="correct" sort-asc="true"></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>
    
      <zing-grid caption="Numbered Strings" sort>
        <zg-data data='[
            { "number": "4510" },
            { "number": "210" },
            { "number": "0" },
            { "number": "649" }
          ]'></zg-data>
        <zg-colgroup>
          <zg-column index="number" header="Incorrect"></zg-column>
          <zg-column index="number" type="number" header="Correct" cell-class="correct" sort-asc="true"></zg-column>
        </zg-colgroup>
      </zing-grid>
    
    </body>
    
    </html>
    body {
      background: #e6e6e6;
    }
    
    .correct {
      background-color: #fffced;
      border-left: 1px solid #fff0a3;
      border-right: 1px solid #fff0a3;
    }