• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
        <meta charset="utf-8">
        <title>ZingGrid: Docs Getting Started</title>
        <!--Script Reference[1]-->
        <script src="https://cdn.zinggrid.com/zinggrid.min.js" defer></script>
        <style>
            zing-grid[loading] {
                height: 367px;
            }
        </style>
    </head>
    
    <body>
        <!--Grid Component Placement[2]-->
        <zing-grid caption="Hello Futurama" sort search pager page-size="3" page-size-options="2,3,6" layout="row" viewport-stop data='[
            {
              "name": "Philip J. Fry",
              "origin": "Earth"
            },
            {
              "name": "Turanga Leela",
              "origin": "Earth"
            },
            {
              "name": "Bender Bending Rodriguez",
              "origin": "Earth"
            },
            {
              "name": "Amy Wong",
              "origin": "Mars"
            },
            {
              "name": "Doctor John Zoidberg",
              "origin": "Decapod 10"
            },
            {
              "name": "Lord Nibbler",
              "origin": "Earth"
            }
          ]'>
        </zing-grid>
        <script>
            // window.onload event for Javascript to run after HTML
            // because this Javascript is injected into the document head
            window.addEventListener('load', () => {
                // content after DOM load
            });
        </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
      <head>
        <meta charset="utf-8">
        <title>ZingGrid: Docs Getting Started</title>
        <!--Script Reference[1]-->
        <script src="https://cdn.zinggrid.com/zinggrid.min.js" defer></script>
      </head>
      <body>
        <!--Grid Component Placement[2]-->
        <zing-grid 
          caption="Hello Futurama"
          sort
          search
          pager
          page-size="3"
          page-size-options="2,3,6"
          layout="row"
          viewport-stop
          data='[
            {
              "name": "Philip J. Fry",
              "origin": "Earth"
            },
            {
              "name": "Turanga Leela",
              "origin": "Earth"
            },
            {
              "name": "Bender Bending Rodriguez",
              "origin": "Earth"
            },
            {
              "name": "Amy Wong",
              "origin": "Mars"
            },
            {
              "name": "Doctor John Zoidberg",
              "origin": "Decapod 10"
            },
            {
              "name": "Lord Nibbler",
              "origin": "Earth"
            }
          ]'>
        </zing-grid>
      </body>
    </html>
    
          
    // window.onload event for Javascript to run after HTML
    // because this Javascript is injected into the document head
    window.addEventListener('load', () => {
      // content after DOM load
    });