Replies: 6 comments 1 reply
-
Can I assume this feature is no longer supported in v7? |
Beta Was this translation helpful? Give feedback.
-
Would also like to know |
Beta Was this translation helpful? Give feedback.
-
Hey guys. It's very important that you remember and understand that v7 is a hook and therefore a headless library. This means that you are in control of your table component! You can build it however you'd like! If you want to add a |
Beta Was this translation helpful? Give feedback.
-
This reply above +1 |
Beta Was this translation helpful? Give feedback.
-
@tsmith123, @egertaia - Yes, You can style rows and cells: Since it is headless UI library, We can style table however we want: In your React table markup code, You basically have a Table row (tr) and Table data (td) html elements. You can style rows or cells there OR you can extend functionality of row.getRowProps or cell.getCellProps -> This is also called prop getter pattern For example, Here I style the rows or cells:
Or
In the above code, getRowStyle(row) is custom function that returns style for that particular row/ cell. |
Beta Was this translation helpful? Give feedback.
-
@07harish Thanks for your comment, but this is if I want to style all |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Has the way in which setting a cell background color changed since v7?
I can find examples for v6 that use
getProps
but this doesn't work on v7. Am I missing something?This is an example I found:
Beta Was this translation helpful? Give feedback.
All reactions