Skip to content
Interfacecorev0.10.0

PaginatorConfig

The transport-agnostic paginator configuration. Each transport adds its own handler wiring on top.

interface PaginatorConfig<Item, Prefix extends string, Ctx>

Item

The item type, inferred from the source.

Item

Prefix

The route prefix, inferred from prefix.

Prefix extends string

Ctx

The transport's page context.

Ctx

ephemeral

Whether the first page is ephemeral.

ephemeral?: boolean

Default:false

prefix

The route prefix used to build the page cursor on the nav buttons.

prefix: Prefix;

render

Take over the whole page tree. Receives the page data and the controls factory.

render?: PageRender<Item>

renderItem

Render one item, index is its absolute position across pages. Ignored when render is set.

renderItem?: ItemRender<Item>