Skip to content
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

How should I implement "selectallrows" when using the persist onpagechange feature? #616

Closed
5 tasks done
AronZeng opened this issue Jul 3, 2020 · 2 comments
Closed
5 tasks done

Comments

@AronZeng
Copy link

AronZeng commented Jul 3, 2020

Feature Check list

  • Agree to the Code of Conduct
  • Read the README to ensure the feature is not already present
  • You read Creating Issues, Features and Pull Requests
  • Considered the value versus complexity for all users of the library as well as library maintenance
  • Considered if this can be a storybook or documentation example

I recently adopted the persist onpagechange feature. However, I would like to still be able to select all rows on the current page. How should this be done? I tried having a separate checkbox to add the rows to my "selectedrows" state but that doesn't seem to be doing what I need. The state is being updated properly but I need the other checkboxes to be checked when clicking on the "selectall" checkbox.

I guess another way to word this would be how can I directly modify the state of the check boxes in every row of the table?

@AronZeng
Copy link
Author

No longer need

@andikosumi
Copy link

@AronZeng What did you do in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants