How to select all sorted rows between currently selected and a given row? #6000
Unanswered
geeseofbeverlyroad
asked this question in
Q&A
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.
-
I have a sortable and filterable table with many rows. Selecting individual rows with
row.toggleSelected()
works fine. I want to implement a standard shift-select functionality, where clicking on a row, then shift clicking another row, selects all rows inbetween.So how would I write the implementation of this function?
Note: I don't want to just select rows by ID between the currently selected row's ID and the newly selected one's, as they are sorted and filtered, so the rows displayed in the table go in some arbitrary sequence of IDs like
[ 12, 4, 15, 0, 5 ... ]
).Beta Was this translation helpful? Give feedback.
All reactions