Skip to content

Pagination

Page buttons for a Data Table, with an optional page-size selector.

Table widgets · widget type pagination · reads and writes page parameters

Related: Data Table

Options

Option Values Default Description
Page param A parameter or state path — Holds the current page number
Page size param A parameter or state path — Holds the current page size
Page count param A parameter or state path — Holds the total number of pages
Default page size A number 10 The page size on first render
Allow selection On · Off On Whether the page-size dropdown is shown — 10, 20, 25, 50, 100
Length A number 5 How many page buttons are drawn
Position Left · Center · Right Right Alignment of the control
Item Style CSS Empty Styling for the page buttons
Box Style Sizing and spacing — The box around the control

Notes

  • The pager holds no data of its own. It drives the same parameters the table reads, so both widgets must point at the same three paths
  • Leaving any of the three parameters empty shows a placeholder instead of the control