<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ZingGrid Demo</title> <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script> <style> body { background: #e6e6e6; } zing-grid[loading] { height: 450px; } </style> </head> <body> <zing-grid caption="Movies" preserve-state-id="featuresGridState3" preserve-state-load="loadMe" preserve-state-save="saveMe" columns-control column-drag filter="both" layout-controls pager page-size="4" page-size-options="2,4,10,20" search sort src="https://zinggrid-examples.firebaseio.com/movies/"> </zing-grid> <script> ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']); function loadMe(id) { console.log('id: ', id); }; function saveMe(id, data) { console.log('id: ', id); console.log('data: ', data); }; </script> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ZingGrid Demo</title> <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script> </head> <body> <zing-grid caption="Movies" preserve-state-id="featuresGridState3" preserve-state-load="loadMe" preserve-state-save="saveMe" columns-control column-drag filter="both" layout-controls pager page-size="4" page-size-options="2,4,10,20" search sort src="https://zinggrid-examples.firebaseio.com/movies/"> </zing-grid> </body> </html>
body { background: #e6e6e6; }
function loadMe(id) { console.log('id: ', id); }; function saveMe(id, data) { console.log('id: ', id); console.log('data: ', data); };