How to clear row selection using an external button #3480
Unanswered
rajnishrao
asked this question in
Q&A
Replies: 1 comment
-
you just need to pass "false" in the function like this: "toggleAllRowsSelected(false)" |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using table with
useRowSelect
checkbox. I have a button in a parent component that I am using to clear row selection. I usedforwardRef
to evoketoggleAllRowsSelected()
function. However, instead of toggle, I just wanted to evoke this function as clear row selection when all or any count of row is selected. I see thereisAllRowsSelected
but not able to use this as a check. here is the example code https://codesandbox.io/s/forward-ref-57bwn?file=/src/components/Table.jsThanks & Regards,
Rajnish
Beta Was this translation helpful? Give feedback.
All reactions