How would one search the virtualized list? #481
|
Let's say a user expects to hit CTRL+F and find an item that has not yet been rendered, how should this be handled with a virtualized list? |
Answered by
is-it-ayush
Nov 8, 2023
Replies: 2 comments 3 replies
|
I don't think you can do that with virtualized list. However there can be different way to search the list such as adding a search text field. |
0 replies
|
Hi @nemonemi! You should call a callback to find the item index in your data array. Then you can use scrollToIndex() from your |
3 replies
Answer selected by
nemonemi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @nemonemi! You should call a callback to find the item index in your data array. Then you can use scrollToIndex() from your
virtualizerindex asvirtualizer.scrollToIndex(fooundIndex). This is from top of my head & not tested but should work.