Pagination

Pagination divides content into several pages and lets the reader move between them.

Basic

Basic usage of Pagination.

More

Pagination shows an ellipsis to stand in for the pages it has skipped, so a long run never prints every number.

Total

Show the number of records alongside the pages by setting data-pg-items.

Page sizes

The page count is derived from items divided by the chosen page size, so changing the size re-counts the pages rather than leaving a stale run of buttons.

Controlled

Start on a given page with data-pg-current. Deep in a long run the component shows an ellipsis on both sides of the window.