paginate-mixin
The paginate mixin is a post-processor mixin, compatible with list-mixin. It provides the ability to paginate a list of resources.
Used by:
Attributes
paginate-by
The list can be split in pages. The “previous” and “next” buttons and the pages counter will be added automatically.
In this example, the list will show pages of 5 users.
<solid-display data-src=http://server/users/" fields="username" paginate-by="5" ></solid-display>
paginate-loop
If this attribute is present, when the user is on the last page, the “Next” button brings back to the first one. Also, when he is on the first page, the “Previous” button brings to the last page.
Is is particularly useful for creating a carousel.
<solid-display data-src=http://server/features/" fields="name, description" paginate-by="1" paginate-loop ></solid-display>