Modules

README

elm-infinite-scroll

Infinite scroll allows you to load more content on demand for the user while scrolling.

The infinite scroll must be bound to an Html element and will execute your own Cmd when the user
scrolled to the bottom (or top) of the element.

The Cmd can be anything you want from local data fetching or complex requests on remote APIs.
All it has to do is to return a Cmd msg and call stopLoading once fetching is finished so that
the infinite scroll can continue asking for more content.

Getting started

Types

First you need to add infinite scroll to your messages and your model.

Initialization

loadMore is the command that will be called when new content is required (more on see later).
initialContent is your own function that initializes your content with a few data (more data will be added as the user scrolls the element)

View

Then, you need to bind infinite scroll to your view, in the element that will contain you long content.