Topic: Autocomplete infinite scroll
Hi,
Is there a way to set an infinite scroll (with asynchronous data) for an autocomplete ? For example load first only 10 rows and every time one scrolls to bottom, show spinner and load 10 other rows, and so on.
Thanks
kpienkowska staff answered 2 years ago
No, it is not possible. Autocomplete does not have an update method. Also, the content of autocomplete dropdown is generated based on options listed on init. You don't have full control of its content to set infinite scroll there.
Making this modification requires the amount of custom code that makes using autocomplete pointless.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.3.0
- Device: ASUS ExpertBook B5302CE
- Browser: Chrome
- OS: Windows 11
- Provided sample code: No
- Provided link: No