How to get custom props in v8 (like getHeaderProps & getCellProps in v7)
Previously, I'd be able to add custom props to a column definition like so:
And then access that custom
thCustomProps
like this:
If I try to do this in V8, not only do these getXProps functions not exist, but Typescript is relatively upset that I'm adding things to DisplayColumnDef that do not exist. Is there a way to implement this kind of functionality in V8?
Thanks!1 Reply
adverse-sapphire•3y ago
meta
should be what you are looking for:
https://tanstack.com/table/v8/docs/api/core/column-def#metaColumnDef | TanStack Table Docs
Column definitions are plain objects with the following options:
Options