Navigation / Pagination

Navigation

Pagination

The range and total, an optional rows-per-page or go-to-page control, and the page row — in a full bar, a plain row, or prev / position / next.

import { EcoPagination } from "vue-ecosphere"

In a table footer

Say the range and the total, not just the page number. At most seven page buttons; the rest elide with a gap.

Showing 51–75 of 187

Full row

Change the rows per page: the reader stays on the rows they were reading.

51–75 of 187

Under a list

Prev and next disable at the ends rather than disappearing, so the row keeps its width.

1–12 of 44

Compact

For a list with no numbers worth showing.

Page 3 of 8

With go-to-page

Type a page and press Enter.

51–75 of 187

of 8

API

NameTypeDefaultDescription
totalnumber—Total number of items.
v-model:pagenumber1Current page, 1-based. Clamped to the page count.
v-model:pageSizenumber25Items per page. Changing it keeps the first row the reader was on.
form"bar" | "row" | "compact""row"bar sits in a table or card footer; row under a list; compact is prev / position / next.
pageSizesnumber[]—Shows the rows-per-page select (pager__size). Offer it only where the list is long enough.
jumpbooleanfalseShows the go-to-page field (pager__jump).
prefixstring—Text before the range, e.g. "Showing".
sizeLabel / jumpLabelstring"Rows" / "Go to"Labels of the two controls.
#countslot { from, to, total, page, pages }—Replace the range text in pager__c.