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

How to change the infinite scrolling value? #14

Closed
Diego74965 opened this issue Mar 14, 2018 · 2 comments
Closed

How to change the infinite scrolling value? #14

Diego74965 opened this issue Mar 14, 2018 · 2 comments

Comments

@Diego74965
Copy link

Let's say i want it to be 50 then 50, not 100 then 100

@eakoriakin
Copy link
Owner

eakoriakin commented Mar 15, 2018

Do yo mean you want to change the number of items loaded on scrolling? E.g., first scroll loads 50, the next one - 100? Am I right?

@eakoriakin
Copy link
Owner

eakoriakin commented Mar 15, 2018

Also, have a look at home.ts file in ionic-select-searchable-demo repository.
https://github.com/eakoriakin/ionic-select-searchable-demo/blob/master/src/pages/home/home.ts

getMorePorts(event: { component: SelectSearchable, infiniteScroll: InfiniteScroll }) {
  ...
  // This method simulates backend pagination.
  this.portService.getPortsAsync(this.ports10Page).subscribe(ports => {
    ..
  }
}

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

No branches or pull requests

2 participants