ons-lazy-repeat


  • Onsen UI

    Using this component a list with millions of items can be rendered without a drop in performance. It does that by “lazily” loading elements into the DOM when they come into view and removing items from the DOM when they are not visible.

    Click here to see the original article



  • I need load data with async function with callback, how to using with ons-lazy-repeat because i can’t return data in delegate.createItemContent


  • Onsen UI

    @tienlbhoc Look at “load more” functionality (onInfiniteScroll, without lazyRepeat). That’s a better way to deal with async calls. Otherwise, in delegate.createItemContent you can synchronously return an empty new item and then asynchronously modify its content when the data is ready.


Log in to reply