• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid Demo</title>
    7. <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. <style>
    9. html,
    10. body {
    11. height: 100%;
    12. width: 100%;
    13. margin: 0;
    14. padding: 0;
    15. }
    16.  
    17. zing-grid[loading] {
    18. height: 282px;
    19. }
    20. </style>
    21. </head>
    22.  
    23. <body>
    24. <zing-grid>
    25. <zg-colgroup>
    26. <zg-column index="name" type="element" type-element-tag-name="h1"></zg-column>
    27. <zg-column index="number" type="element" type-element-tag-name="em"></zg-column>
    28. <zg-column index="age"></zg-column>
    29. </zg-colgroup>
    30. <zg-data data='[{"name": "Maria","number": 123, "age": 5}, {"name": "Juanita","number": 456, "age": 36}, {"name": "Felicity","number": 789, "age": 44}]'></zg-data>
    31. </zing-grid>
    32. <script>
    33. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
    34. </script>
    35. </body>
    36.  
    37. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid Demo</title>
    7. <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. </head>
    9.  
    10. <body>
    11. <zing-grid>
    12. <zg-colgroup>
    13. <zg-column index="name" type="element" type-element-tag-name="h1"></zg-column>
    14. <zg-column index="number" type="element" type-element-tag-name="em"></zg-column>
    15. <zg-column index="age"></zg-column>
    16. </zg-colgroup>
    17. <zg-data data='[{"name": "Maria","number": 123, "age": 5}, {"name": "Juanita","number": 456, "age": 36}, {"name": "Felicity","number": 789, "age": 44}]'></zg-data>
    18. </zing-grid>
    19. </body>
    20.  
    21. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    1.