Pager

It manages pagination state and renders controls to switch between pages. Typical usage is in lists or tables with many items.

Constructors

Pager

Pager creates a new Page with the given state. The active page is the zero-based offset of the current page.


Methods

MethodDescription
Count(count int)Count sets the number of available pages. If count is 0 or less, at least a single page is still shown.
Frame(frame ui.Frame)
Visible(v bool)