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

[Table]: Add support for controlled selection state in Table #2316

Open
anuraghazra opened this issue Jul 22, 2024 · 0 comments · May be fixed by #2370
Open

[Table]: Add support for controlled selection state in Table #2316

anuraghazra opened this issue Jul 22, 2024 · 0 comments · May be fixed by #2370
Assignees
Labels
enhancement New feature or request

Comments

@anuraghazra
Copy link
Member

Right now Table selection state is managed by the Table component itself and it only exposes the onSelectionChange function to detect the selection change but doesn't provide any way for us to control the state programatically.

Usecases:

  • Default selected table rows
  • Deselecting selected rows after doing some operation
    • eg: bulk updating table rows by opening a modal and clicking "apply" and once the operation is done the rows should get deselected

https://razorpay.slack.com/archives/CMQ3RBHEU/p1721650963801319?thread_ts=1721645351.109379&cid=CMQ3RBHEU

FYI, Same behaviour with isDisabled, we may need it to be controlled to?

@anuraghazra anuraghazra added the enhancement New feature or request label Jul 22, 2024
@anuraghazra anuraghazra linked a pull request Oct 4, 2024 that will close this issue
5 tasks
@anuraghazra anuraghazra self-assigned this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant