• Edit
  • Download
    1. <!DOCTYPE html>
    2. <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. .zg-body {
    10. background: #e6e6e6;
    11. }
    12.  
    13. zing-grid[loading] {
    14. height: 325px;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body class="zg-body">
    20.  
    21. <zing-grid caption="Date Formatting">
    22. <zg-colgroup>
    23. <zg-column index="d1" header="Input String"></zg-column>
    24. <zg-column index="d1" header="No Formatting<br>Default Locale" type="date"></zg-column>
    25. <zg-column index="d1" header="No Formatting<br>en-GB Locale" type="date" locale="en-GB"></zg-column>
    26. <zg-column index="d1" header="Format: dddd, MMMM Do YYYY" type-date-format="dddd, MMMM Do YYYY" type="date"></zg-column>
    27. <zg-column index="d1" header="Format: Mo [Month], Qo [Quarter]" type-date-format="Mo [Month], Qo [Quarter]" type="date"></zg-column>
    28. <zg-column index="d1" header="English" type-date-format="LLLL" type="date"></zg-column>
    29. <zg-column index="d1" header="Spanish" type-date-format="LLLL" type="date" locale="es"></zg-column>
    30. <zg-column index="d1" header="German" type-date-format="LLLL" type="date" locale="de"></zg-column>
    31. </zg-colgroup>
    32. <zg-data data='[{"d1": "12/30/2018 12:01:01 AM"}, {"d1": "1/1/2015 1:32:55 PM"}, {"d1": "1/1/2016 1:32:55 PM"}, {"d1": 1451683975567}]'></zg-data>
    33. </zing-grid>
    34.  
    35. <script>
    36. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
    37. </script>
    38. </body>
    39.  
    40. </html>
    1. <!DOCTYPE html>
    2. <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 caption="Date Formatting">
    13. <zg-colgroup>
    14. <zg-column index="d1" header="Input String"></zg-column>
    15. <zg-column index="d1" header="No Formatting<br>Default Locale" type="date"></zg-column>
    16. <zg-column index="d1" header="No Formatting<br>en-GB Locale" type="date" locale="en-GB"></zg-column>
    17. <zg-column index="d1" header="Format: dddd, MMMM Do YYYY" type-date-format="dddd, MMMM Do YYYY" type="date"></zg-column>
    18. <zg-column index="d1" header="Format: Mo [Month], Qo [Quarter]" type-date-format="Mo [Month], Qo [Quarter]" type="date"></zg-column>
    19. <zg-column index="d1" header="English" type-date-format="LLLL" type="date"></zg-column>
    20. <zg-column index="d1" header="Spanish" type-date-format="LLLL" type="date" locale="es"></zg-column>
    21. <zg-column index="d1" header="German" type-date-format="LLLL" type="date" locale="de"></zg-column>
    22. </zg-colgroup>
    23. <zg-data data='[{"d1": "12/30/2018 12:01:01 AM"}, {"d1": "1/1/2015 1:32:55 PM"}, {"d1": "1/1/2016 1:32:55 PM"}, {"d1": 1451683975567}]'></zg-data>
    24. </zing-grid>
    25.  
    26. </body>
    27.  
    28. </html>
    1. .zg-body {
    2. background: #e6e6e6;
    3. }
    1.