<!DOCTYPE html> <html class="zc-html"> <head> <meta charset="utf-8"> <title>ZingGrid: Simple Grid</title> <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script> <style> body { background: #e6e6e6; } zing-grid[loading] { height: 148px; } </style> </head> <body> <zing-grid caption="GraphQL Demo" pager page-size="10" sort filter> <zg-data src="https://us-central1-zingsoft-demo-endpoints.cloudfunctions.net/zinggrid-graphql-countries" adapter="graphql"> <zg-param name="recordPath" value="data.countries"></zg-param> <zg-param name="readBody" value="getContinents"></zg-param> </zg-data> </zing-grid> <script> ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']); var getContinents = () => { return { query: ` { countries { name, capital } }` }; }; </script> </body> </html>
<!DOCTYPE html> <html class="zc-html"> <head> <meta charset="utf-8"> <title>ZingGrid: Simple Grid</title> <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script> </head> <body> <zing-grid caption="GraphQL Demo" pager page-size="10" sort filter> <zg-data src="https://us-central1-zingsoft-demo-endpoints.cloudfunctions.net/zinggrid-graphql-countries" adapter="graphql"> <zg-param name="recordPath" value="data.countries"></zg-param> <zg-param name="readBody" value="getContinents"></zg-param> </zg-data> </zing-grid> </body> </html>
body { background: #e6e6e6; }
var getContinents = () => { return { query: ` { countries { name, capital } }` }; };