• Edit
  • Download
  • <!DOCTYPE html>
    <html class="zg-html">
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid: Blank Grid</title>
      <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
      <style>
        body {
          background: #e6e6e6;
        }
    
        @keyframes BOUNCE {
    
          0%,
          100% {
            transform: translateY(0);
          }
    
          50% {
            transform: translateY(-15px);
          }
        }
    
        .animate {
          animation: BOUNCE .5s;
        }
    
        zing-grid[loading] {
          height: nullpx;
        }
      </style>
    </head>
    
    <body class="zg-body">
    
      <zing-grid id="myGrid" data='[{"firstName":"John", "lastName":"Doe"}, {"firstName":"Jane", "lastName":"Doe"}]' caption="Click a row to animate the grid">
      </zing-grid>
    
    
      <script nonce="undefined">
        let zgRef = document.querySelector('#myGrid');
        zgRef.addEventListener('record:click', e => {
          zgRef.classList.add('animate');
        });
      </script>
    
      <script>
        ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html class="zg-html">
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid: Blank Grid</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    </head>
    
    <body class="zg-body">
    
      <zing-grid id="myGrid" data='[{"firstName":"John", "lastName":"Doe"}, {"firstName":"Jane", "lastName":"Doe"}]' caption="Click a row to animate the grid">
      </zing-grid>
    
    
      <script>
        let zgRef = document.querySelector('#myGrid');
        zgRef.addEventListener('record:click', e => {
          zgRef.classList.add('animate');
        });
      </script>
    
    </body>
    
    </html>
    body {
      background: #e6e6e6;
    }
    
    @keyframes BOUNCE {
    
      0%,
      100% {
        transform: translateY(0);
      }
    
      50% {
        transform: translateY(-15px);
      }
    }
    
    .animate {
      animation: BOUNCE .5s;
    }