-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to add a checkbox input to a cell #13
Comments
Try checked={true}
|
Then to respond to changes, use onChange={() => {doSomething()}}
|
checked={true} doesn't change anything. What am I supposed to put within:
|
That is the callback for when the page and sorting changes. It is an
|
Aha, I don't think i need to fetch server side data. I just want to be able to check checkboxes within the custom cell component, the checking doesn't have to be persisted across page reloads or component lifecycles, but i would like to be able to access them from the application across paging. Maybe it is wise to save the state of the checkbox within the data object? Do i change the state with onChange? And would you send me in the right direction to extract custom cell value changes? |
Yes. In each row of the data, keep a property to track the check box state. React Table doesn't track state for anything except paging and sorting. The
|
Thanks for taking your time! |
You bet!
|
Result:
The text was updated successfully, but these errors were encountered: