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

Provide infinite scroll on search items #238

Open
jmanojkumar27 opened this issue Sep 15, 2017 · 3 comments
Open

Provide infinite scroll on search items #238

jmanojkumar27 opened this issue Sep 15, 2017 · 3 comments
Assignees
Milestone

Comments

@jmanojkumar27
Copy link

Hi guylabs team, i need to load the data in infinite sroll base like from 1000 obj i need to load 50 first how to implement that in directive as well as in controller i'm waiting for ur reply

@guylabs guylabs added this to the Backlog milestone Oct 4, 2017
@guylabs
Copy link
Owner

guylabs commented Oct 4, 2017

Hi @jmanojkumar27

the ion-autocomplete directive does not support infinite scroll. If you like to use it you need to adapt the template such that infinite scroll is used and then implement your method to load the needed items properly.

See https://github.com/guylabs/ion-autocomplete#template-url on how to change the template.

I will keep the issue open as feature request but there are no plans now to support it. If you have a solution with the custom template, then you maybe could come up with a pull request and contribute to the project.

Hope that helps you.

Thanks and regards

Guy

@guylabs guylabs changed the title infinite scroll Provide infinite scroll on search items Oct 4, 2017
@guylabs guylabs self-assigned this Oct 4, 2017
@gui-com-pt
Copy link

@guylabs I'm able to load more data injecting a method to templateData but how can i concat the results to the searchItems?

@guylabs
Copy link
Owner

guylabs commented Dec 6, 2017

Hi @guilhermegeek

if you want to show the items in the list then you need to use the items-method (see https://github.com/guylabs/ion-autocomplete#the-items-method) method only. You cannot use the templateData to load the items.

What is your use case and why are you using the templateData for that?

Regards

Guy

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

3 participants