<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ZingGrid: Basic Template</title> <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script> <style> body { background: #e6e6e6; } zing-grid[loading] { height: 213px; } </style> </head> <body> <h3>`[headerTooltipTemplate]` points to an external template element to be used as the template for the tooltop display.</h3> <zing-grid> <zg-data data='[ { "name": "Maria", "number": 123 }, { "name": "Juanita", "number": 456 }, { "name": "Felicity", "number": 789 } ]'></zg-data> <zg-colgroup> <zg-column index="name" header-tooltip-text="First Name" header-tooltip-template="customTemplate"> </zg-column> <zg-column index="number" header-tooltip-text="ID Number"></zg-column> </zg-colgroup> </zing-grid> <template id="customTemplate"> <strong>Message:</strong> [[tooltipText]]</strong><br> <strong>Index:</strong> [[fieldIndex]]<br> <strong>Header Text:</strong> [[headerText]]<br> </template> <script> ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']); </script> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ZingGrid: Basic Template</title> <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script> </head> <body> <h3>`[headerTooltipTemplate]` points to an external template element to be used as the template for the tooltop display.</h3> <zing-grid> <zg-data data='[ { "name": "Maria", "number": 123 }, { "name": "Juanita", "number": 456 }, { "name": "Felicity", "number": 789 } ]'></zg-data> <zg-colgroup> <zg-column index="name" header-tooltip-text="First Name" header-tooltip-template="customTemplate"> </zg-column> <zg-column index="number" header-tooltip-text="ID Number"></zg-column> </zg-colgroup> </zing-grid> <template id="customTemplate"> <strong>Message:</strong> [[tooltipText]]</strong><br> <strong>Index:</strong> [[fieldIndex]]<br> <strong>Header Text:</strong> [[headerText]]<br> </template> </body> </html>
body { background: #e6e6e6; }