• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html lang="en">
    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. .zg-body {
    10. background: #e6e6e6;
    11. }
    12.  
    13. zing-grid[loading] {
    14. height: 554px;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body class="zg-body">
    20.  
    21. <zing-grid caption="USD (en) Currency">
    22. <zg-data data='[{"usd":1135,"other":1895},{"usd":23894,"other":5732},{"usd":613421,"other":120984}]'></zg-data>
    23. <zg-column type="currency" index="usd" header="USD (no type-currency defined)"></zg-column>
    24. <!-- can define USD number formatting with European currency symbol -->
    25. <zg-column type="currency" index="other" type-currency="EUR"></zg-column>
    26. </zing-grid>
    27.  
    28. <zing-grid caption="German (de) Currency" lang="de">
    29. <zg-data data='[{"de":1135,"other":1895},{"de":23894,"other":5732},{"de":613421,"other":120984}]'></zg-data>
    30. <!-- numbers formatted to german (de) ISO -->
    31. <zg-column type="currency" index="de" header="Euro (no type-currency defined)"></zg-column>
    32. <!-- still need to define type-currency to get the proper currency symbol -->
    33. <zg-column type="currency" index="other" type-currency="EUR"></zg-column>
    34. </zing-grid>
    35. <script>
    36. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
    37. </script>
    38. </body>
    39.  
    40. </html>
    1. <!DOCTYPE html>
    2. <html lang="en">
    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 caption="USD (en) Currency">
    13. <zg-data data='[{"usd":1135,"other":1895},{"usd":23894,"other":5732},{"usd":613421,"other":120984}]'></zg-data>
    14. <zg-column type="currency" index="usd" header="USD (no type-currency defined)"></zg-column>
    15. <!-- can define USD number formatting with European currency symbol -->
    16. <zg-column type="currency" index="other" type-currency="EUR"></zg-column>
    17. </zing-grid>
    18.  
    19. <zing-grid caption="German (de) Currency" lang="de">
    20. <zg-data data='[{"de":1135,"other":1895},{"de":23894,"other":5732},{"de":613421,"other":120984}]'></zg-data>
    21. <!-- numbers formatted to german (de) ISO -->
    22. <zg-column type="currency" index="de" header="Euro (no type-currency defined)"></zg-column>
    23. <!-- still need to define type-currency to get the proper currency symbol -->
    24. <zg-column type="currency" index="other" type-currency="EUR"></zg-column>
    25. </zing-grid>
    26. </body>
    27.  
    28. </html>
    1. .zg-body {
    2. background: #e6e6e6;
    3. }
    1.