sdxmessaging / ui-widgets

Build powerful form inputs/outputs with mithril and streams.
MIT License
4 stars 1 forks source link

`List` Component - Pagination Support #159

Closed MichaelPastuch closed 7 months ago

MichaelPastuch commented 7 months ago

Create an variant of the ListController that can be manually "paged" through its items.

The scrolling list works well for fixed height containers, but will only show the first 3 "blocks" of data if the container is full height. There are UI elements where manual pagination feels more appropriate, such as CCA Digital transaction lists.

MichaelPastuch commented 7 months ago

A variant of ListController called PageController with virtually the same interface has been made. This class has functions for changing "pages" to show (100 items, or 4 "blocks"), and the controller can given to the standard List component for rendering.