Documentation / @zerotal/flow / index / Pager
Function: Pager()
Pager(
props):HtmlNode
Defined in: flow/src/components.ts:940
Renders a Prev / numbered / Next pager from a Paginator (the result of
Model.paginate() or the in-memory paginate() helper). Links are SPA navigate anchors to
?page=N, so they pair with @url page with no per-link wiring; renders nothing for
a single page.
Parameters
props
Returns
Remarks
Pass params to preserve other query state (search term, per-page, …). hover
prefetches each page; prevLabel/nextLabel and the class props override the
defaults. This is the links UI — the Flow equivalent of Livewire's
$paginator->links() view.
Example
<Pager paginator={p} params={{ q: this.query, perPage: this.perPage }} hover />