Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

Sneak Peeking 1.2.2: Lazy Repeat (or Infinite Scrolling)

  • Onsen UI

    OnsenUI lazy-repeat

    One of the features that the upcoming release of OnsenUI provides is the ons-lazy-repeat component. Frequently we need to load lists of elements that are large enough to slow down the app or even freeze it until the loading is finished, worsening the user experience. Here is where the new ons-lazy-repeat comes in.

    Click here to see the original article

  • How we can calculate item height dynamically in calculateItemHeight ? Could you please give us an example ?

  • @Omar-Hassan

    You use the calculateItemHeight function. It should return the number of height in pixels.

    I made a simple example:

    In this example I just return a different height depending on if the index is an odd or even number. Normally you need some function that figures out how high the item is based on the content.

  • Hey, Can you explain more about the variables index and itemScope of the function configureItemScope. I would like to be able to call multiple items per request but I am having trouble understanding how this works