• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html class="zg-html">
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid: Blank Grid</title>
    7. <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. <style>
    9. body {
    10. background: #e6e6e6;
    11. }
    12.  
    13. @keyframes BOUNCE {
    14.  
    15. 0%,
    16. 100% {
    17. transform: translateY(0);
    18. }
    19.  
    20. 50% {
    21. transform: translateY(-15px);
    22. }
    23. }
    24.  
    25. .animate {
    26. animation: BOUNCE .5s;
    27. }
    28.  
    29. zing-grid[loading] {
    30. height: nullpx;
    31. }
    32. </style>
    33. </head>
    34.  
    35. <body class="zg-body">
    36.  
    37. <zing-grid id="myGrid" data='[{"firstName":"John", "lastName":"Doe"}, {"firstName":"Jane", "lastName":"Doe"}]' caption="Click a row to animate the grid">
    38. </zing-grid>
    39.  
    40.  
    41. <script nonce="undefined">
    42. let zgRef = document.querySelector('#myGrid');
    43. zgRef.addEventListener('record:click', e => {
    44. zgRef.classList.add('animate');
    45. });
    46. </script>
    47.  
    48. <script>
    49. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
    50. </script>
    51. </body>
    52.  
    53. </html>
    1. <!DOCTYPE html>
    2. <html class="zg-html">
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid: Blank Grid</title>
    7. <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. </head>
    9.  
    10. <body class="zg-body">
    11.  
    12. <zing-grid id="myGrid" data='[{"firstName":"John", "lastName":"Doe"}, {"firstName":"Jane", "lastName":"Doe"}]' caption="Click a row to animate the grid">
    13. </zing-grid>
    14.  
    15.  
    16. <script>
    17. let zgRef = document.querySelector('#myGrid');
    18. zgRef.addEventListener('record:click', e => {
    19. zgRef.classList.add('animate');
    20. });
    21. </script>
    22.  
    23. </body>
    24.  
    25. </html>
    1. body {
    2. background: #e6e6e6;
    3. }
    4.  
    5. @keyframes BOUNCE {
    6.  
    7. 0%,
    8. 100% {
    9. transform: translateY(0);
    10. }
    11.  
    12. 50% {
    13. transform: translateY(-15px);
    14. }
    15. }
    16.  
    17. .animate {
    18. animation: BOUNCE .5s;
    19. }
    1.