gleamtea/paginator
A bubble: a paginator (dots or “N/M”).
Types
Values
pub fn new(
total_items total_items: Int,
per_page per_page: Int,
) -> Paginator
A paginator over total_items items, showing per_page per page.
pub fn slice_bounds(
paginator: Paginator,
total: Int,
) -> #(Int, Int)
The #(start, end) indices (0-based, half-open) for the current page over
a collection of total items.
pub fn update(
msg: msg,
paginator: Paginator,
) -> #(Paginator, gleamtea.Cmd(msg))
Move between pages with ←/→, h/l, or PageUp/PageDown.