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

typeahead virtual scroll #6053

Open
Shemesh opened this issue Mar 15, 2021 · 3 comments
Open

typeahead virtual scroll #6053

Shemesh opened this issue Mar 15, 2021 · 3 comments

Comments

@Shemesh
Copy link

Shemesh commented Mar 15, 2021

hi,
in my typeahead i have lots of items.
how do i add virtual scroll to the drop-down items list?

@LemonyPie
Copy link

@why-asia is it possible to detect if user scrolled to the end of elements list to load them from backend with offset?

@Chealer
Copy link

Chealer commented Jul 30, 2021

I am afraid that is not currently possible. In fact, even lazy loading is not supported, even by Typeahead.js.

Here is a definition of "virtual scrolling"

@Shemesh
Copy link
Author

Shemesh commented Jul 31, 2021

well @Chealer ... it is not built-in inside ngx typeahead component, but...
with few tweaks i was able to achieve my goal!
added my own optionsListTemplate and inside it wrapped the list with cdk-virtual-scroll-viewport
it works perfectly well.

i just wish ngx typeahead would have this built in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants