Directory

← Back

LazyList Add-on

Loads more components lazily when the list is scrolled down

Author

Contributors

Rating

LazyList is a UI component which has other components inside it. The list is scrollable and the components inside it are placed vertically. When the user scrolls to the end of the list, the LazyList fetches more components from the server side. This pattern is commonly used especially in mobile applications.

Sample code

LazyItemFetcher itemFetcher = new LazyItemFetcher() {
    @Override
    public List getMoreItems() {
        // Create the new components here
    }
};
final LazyList lazylist = new LazyList(itemFetcher);
lazylist.setSizeFull();
setContent(lazylist);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Hides the spinner if no more items are found

Released
2014-12-08
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.2+
Vaadin 7.1+ in 0.0.1
Browser
Google Chrome
iOS Browser
Online