-
Notifications
You must be signed in to change notification settings - Fork 6.8k
md-autocomplete: scroll event for pagination #5046
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
Comments
While you're waiting for an official response, you can still get to the scroll event via the panel's native element: |
Thanks for the plunker, this will indeed help me for now ! |
This isn't something we plan on adding, but we will eventually support virtual scrolling. |
@willshowell thank you for your help! the plunker is really help me a lot. |
i am looking for the same thing in mat-select can you help me to do the same functionality in mat-select |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
This is a feature request - proposal:
Add a way to let us know when the autocomplete has scrolled to the end to enable pagination in the autocomplete component (kind of an infinite scrolling).
Something like:
loadMoreData being a custom method in the component.
What is the expected behavior?
What is the current behavior?
What is the use-case or motivation for changing an existing behavior?
I have some http request to fill the autocomplete and filter them. Some of those list contains thousands of items. I can't just show them all.
Which versions of Angular, Material, are you using?
Angular: 4.1.3,
Angular/material: 2.0.0-beta.6
Is there anything else we should know?
I don't know if this is already planned, or if it is already doable with another component. I don't think so and I can't seem to find anything related to that.
The closest would be a virtual repeat maybe ? But that would not answer the problem server side (sending everything at once).
I used to have a directive that would do the (scrolled) event, but it doesn't work here. I think because the items are in fact somewhere else in the overlay-container thingy.
Cheers !
The text was updated successfully, but these errors were encountered: