Replies: 1 comment
-
Well, one hacky way is keep useRowSelect for both the case. give ID to selection column which is showing the checkbox for selection. Then based on condition you can hide the column using |
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 All,
I'm trying to create a re-usable table component with row selection functionality using the below code reference from the API.
https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/row-selection-and-pagination
The component I'm creating will take data and columns as props but will have the ability to turn toggle features.
So if table 1 has the feature to select rows, but table two doesn't have the feature, how to turn off useRowSelect for the entire table?
I could understand other features like useFilters and useSortBy can be disabled per column by setting the disable property.
Beta Was this translation helpful? Give feedback.
All reactions