ComboBox: infinite scroll #2220
-
Hi, we have a use case where we show a ComboBox with huge amount of options that are delay loaded in pages. At the moment we are using I was wondering if there are any plans on adding support for infinite scroll in iTwinUI ComboBox? I didn't see an ability to invoke some function to load more options when dropdown menu bottom is reached. I think it should be enough to expose a callback like I tried playing around with iTwinUI ComboBox and managed to reach somewhat similar workflow with fake |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey, can you share more details about your use-case? Infinitely loading the options in |
Beta Was this translation helpful? Give feedback.
Hey, can you share more details about your use-case? Infinitely loading the options in
ComboBox
feels like an anti-pattern to me. Can't you just load the top N results for every search term (using a customfilterFunction
)? The user would then type a few more characters to get more relevant results, avoiding the need to scroll infinitely.