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

Feature request: add onSelectAllClicked trigger #901

Closed
gab23r opened this issue Feb 9, 2024 · 4 comments
Closed

Feature request: add onSelectAllClicked trigger #901

gab23r opened this issue Feb 9, 2024 · 4 comments

Comments

@gab23r
Copy link

gab23r commented Feb 9, 2024

I would be nice catch when the checkbox select/deselect all is clicked.

@jassmith
Copy link
Contributor

Do you just want to know when it happens or need the ability to cancel/override behavior?

@gab23r
Copy link
Author

gab23r commented Feb 10, 2024

Actually, at the end what I need is to know the selected lines. I can know when a line is selected with onCellClicked (column will be -1 if I clicked on the checkbox). So I thought I could manage to keep track of the selected rows myslef but it is not possible if I can't listen the selectedAll checkbox...

In the meantime, I realize that a I can't know if a click on a checkbox is a shift click or not, so... I don't know if it is possible to know the selected rows. I am missing something obvious ?

@jassmith
Copy link
Contributor

onGridSelectionChange gives you the updated gridSelection which has a rows property which has all the selected rows.

@gab23r
Copy link
Author

gab23r commented Feb 11, 2024

Oh right didn't see that, actually am I using reflex: a package that wrap you lib and make it available within python but today this event is not available. I will see with them, thanks.
I let you close this then, except if there is other use case for it.
Thanks!

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