<!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> html, body { height: 100%; width: 100%; margin: 0; padding: 0; } zing-grid[loading] { height: 450px; } </style> </head> <body> <h3>Call `searchIsTable()` to insert a grid if `table[is="zing-grid"]` is added after Documented is loaded.</h3> <table> <tr> <th>First</th> <th>Last</th> <th>Number</th> </tr> <tr> <td><b>Maria</b></td> <td>John</td> <td>123</td> </tr> <tr> <td><ins>David</ins></td> <td>Smith</td> <td>456</td> </tr> <tr> <td><i>Felicity</i></td> <td>Snow</td> <td>789</td> </tr> </table> <script> ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']); window.addEventListener('load', () => { // Add [is="zing-grid"] attribute let tableRef = document.querySelector('table'); tableRef.setAttribute('is', 'zing-grid'); // Insert grid over `table[is="zing-grid"]` ZingGrid.searchIsTable(); }); </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> <h3>Call `searchIsTable()` to insert a grid if `table[is="zing-grid"]` is added after Documented is loaded.</h3> <table> <tr> <th>First</th> <th>Last</th> <th>Number</th> </tr> <tr> <td><b>Maria</b></td> <td>John</td> <td>123</td> </tr> <tr> <td><ins>David</ins></td> <td>Smith</td> <td>456</td> </tr> <tr> <td><i>Felicity</i></td> <td>Snow</td> <td>789</td> </tr> </table> </body> </html>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
window.addEventListener('load', () => { // Add [is="zing-grid"] attribute let tableRef = document.querySelector('table'); tableRef.setAttribute('is', 'zing-grid'); // Insert grid over `table[is="zing-grid"]` ZingGrid.searchIsTable(); });