Per-column styles #2632
Unanswered
tyteen4a03
asked this question in
General
Replies: 1 comment
-
You can see in this example how to add a classname or a style to the header and the cell: You can put a condition like below. <th {...column.getHeaderProps([{
className: cell.column.Header === 'My Header' ? 'myClassName' : '',
style: cell.column.Header === 'My Header' ? myStyleObject : {},
}])}> |
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.
-
How can I specify in my column definition the styles I want to apply for the whole column?
Beta Was this translation helpful? Give feedback.
All reactions