Replies: 1 comment
-
As stated in the doc here here
What you need to do is casting your (columnDef.meta as MetaType).headerClass... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm pretty new to React-Table (v8) and TS, and I'm having some troubles with column meta-type.
As explained in official docs, I create a table:
const table = createTable().setRowType<MyCustomDataType>();
then, I define a custom meta-type for my columns to set CSS classes for both headers and cells, and I set this meta-type for the table with
setColumnMetaType()
method:BUT, when I start to define my columns, VSCode makes no type inference on the meta property:
Any hints? Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions