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 implement lazy-loading in typescript? #556

Open
ramakrishna-dadi opened this issue Aug 6, 2019 · 0 comments
Open

How to implement lazy-loading in typescript? #556

ramakrishna-dadi opened this issue Aug 6, 2019 · 0 comments

Comments

@ramakrishna-dadi
Copy link

Description

I want to implement lazy-loading with iron-list. I am using typescript for my application. I found theshold example. But it is not working with typescript. The event is not triggered when scroll down. It is triggered when click on list item. How to implement when scrolling down?. My iron-list is some part of the page so when scroll down to end of the list I want to add more result from server

<iron-list .items=${this.items} as="item" scroll-target="scrollTheshold">
     <template>
           <div>content here.....</div>
      </template>
  </iron-list>
<iron-scroll-threshold id="scrollTheshold"  lower-threshold="200" on-lower-threshold="${this._loadData()}">
  </iron-scroll-threshold>
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

1 participant