HTML in header cells
Import the html
function first:
import { Grid, html } from "gridjs";
Then you can use that in columns
or name
field of columns
:
Live Editor
Result
Name | Email |
---|---|
Archie Bergnaum | Aglae_Jerde@hotmail.com |
Dr. Betty Rau | Quentin_Goodwin@yahoo.com |
Travis Witting | Hilbert73@yahoo.com |
Betty Runte | Antoinette.Stiedemann96@yahoo.com |
Diana Grant | Providenci.Maggio@hotmail.com |
You can also create a virtual DOM and attach it to header cells:
import { Grid, h } from "gridjs";
Live Editor
Result
Name | Email |
---|---|
Ms. Peter Rath | Aaron80@hotmail.com |
Camille Koch | Lauriane.Prosacco@gmail.com |
Lorena Zemlak | Jacquelyn.Block67@gmail.com |
Lynda Klein | Zane18@gmail.com |
Joel Weber | Vergie23@yahoo.com |