type Pagination struct {
// contains filtered or unexported fields
}
Pagination incrementally paints a compact page chooser. Each Add call emits
commands immediately, so callers do not need a registry or collected model.
Methods
AddEllipsis#
func (pagination *Pagination) AddEllipsis()
AddEllipsis paints a non-interactive omission marker.
AddNext#
func (pagination *Pagination) AddNext(id ui.ID, label string, disabled bool)
AddNext adds a next-page control. Disabled controls paint but do not emit a
hit region.
AddPage#
func (pagination *Pagination) AddPage(id ui.ID, label string, current bool)
AddPage adds one page. Current pages use the blue accent and are inert.
AddPrevious#
func (pagination *Pagination) AddPrevious(id ui.ID, label string, disabled bool)
AddPrevious adds a previous-page control. Disabled controls paint but do not
emit a hit region.