How can I hide or show checkboxes using a state or prop? #840
stefanellid-mms
started this conversation in
General
Replies: 0 comments
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.
-
Hello everyone,
I'd like to change dynamically the
enableRowSelection
, controlled by a variable (a state or prop). For instance, by default I setenableRowSelection
tofalse
but, after an API request where I check user's permissions, I like to switchenableRowSelection
totrue
. The problem is that even when I updated the state variable from false to true, the checkboxes are never displayed.Here is a code example:
Beta Was this translation helpful? Give feedback.
All reactions