- <!DOCTYPE html>
- <html>
-
- <head>
- <meta charset="utf-8">
- <title>ZingGrid Demo</title>
- <script nonce="undefined" src="https://cdn.zinggrid.com/dev/zinggrid-dev.min.js"></script>
- <style>
- html,
- body {
- height: 100%;
- width: 100%;
- margin: 0;
- padding: 0;
- }
-
- zing-grid[loading] {
- height: 142px;
- }
- </style>
- </head>
-
- <body>
-
- <zing-grid caption="CSV Data Source">
- <zg-data>
- <zg-param name="csvHeader" value='true'></zg-param>
- <zg-param name="responseType" value='text/csv'></zg-param>
- </zg-data>
- </zing-grid>
-
- <script>
- ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
- let gridData = `First,Last,Number
- Maria,John,123
- David,Smith,456
- Felicity,Snow,789`;
-
- window.addEventListener('load', () => {
- let zgRef = document.querySelector('zing-grid');
- zgRef.executeOnLoad(() => {
- zgRef.data = gridData;
- });
- });
- </script>
- </body>
-
- </html>
- <!DOCTYPE html>
- <html>
-
- <head>
- <meta charset="utf-8">
- <title>ZingGrid Demo</title>
- <script src="https://cdn.zinggrid.com/dev/zinggrid-dev.min.js"></script>
- </head>
-
- <body>
-
- <zing-grid caption="CSV Data Source">
- <zg-data>
- <zg-param name="csvHeader" value='true'></zg-param>
- <zg-param name="responseType" value='text/csv'></zg-param>
- </zg-data>
- </zing-grid>
-
- </body>
-
- </html>
- html,
- body {
- height: 100%;
- width: 100%;
- margin: 0;
- padding: 0;
- }
- let gridData = `First,Last,Number
- Maria,John,123
- David,Smith,456
- Felicity,Snow,789`;
-
- window.addEventListener('load', () => {
- let zgRef = document.querySelector('zing-grid');
- zgRef.executeOnLoad(() => {
- zgRef.data = gridData;
- });
- });