• 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. .zg-body {
    10. background: #e6e6e6;
    11. }
    12.  
    13. zg-cell img {
    14. width: 100px;
    15. height: 100px;
    16. }
    17.  
    18. zing-grid[loading] {
    19. height: 517px;
    20. }
    21. </style>
    22. </head>
    23.  
    24. <body class="zg-body">
    25. <zing-grid caption="Actors/Actresses" src="https://cdn.zinggrid.com/datasets/users.json" search pager page-size="4">
    26. <zg-colgroup>
    27. <zg-column index="name"></zg-column>
    28. <zg-column index="actor"></zg-column>
    29. <zg-column index="job"></zg-column>
    30. <zg-column index="origin"></zg-column>
    31. <!-- excluded columns from search -->
    32. <zg-column type="image" index="img" search="disabled"></zg-column>
    33. <!-- column so you can view the string for the image url -->
    34. <zg-column index="img" search="disabled"></zg-column>
    35. </zg-colgroup>
    36. </zing-grid>
    37. <script>
    38. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
    39. </script>
    40. </body>
    41.  
    42. </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 class="zg-body">
    11. <zing-grid caption="Actors/Actresses" src="https://cdn.zinggrid.com/datasets/users.json" search pager page-size="4">
    12. <zg-colgroup>
    13. <zg-column index="name"></zg-column>
    14. <zg-column index="actor"></zg-column>
    15. <zg-column index="job"></zg-column>
    16. <zg-column index="origin"></zg-column>
    17. <!-- excluded columns from search -->
    18. <zg-column type="image" index="img" search="disabled"></zg-column>
    19. <!-- column so you can view the string for the image url -->
    20. <zg-column index="img" search="disabled"></zg-column>
    21. </zg-colgroup>
    22. </zing-grid>
    23. </body>
    24.  
    25. </html>
    1. .zg-body {
    2. background: #e6e6e6;
    3. }
    4.  
    5. zg-cell img {
    6. width: 100px;
    7. height: 100px;
    8. }
    1.