Pagination
Page through a data set with an Astryx pagination control.
value holds the current one-based page. When page_size_options is
given, choosing a new page size arrives through on_action rather than
value, so the page number stays the synchronized state.
Notes
See Astryx component docs: https://astryx.atmeta.com/components/Pagination.
Functions
constructor__init__(page=1, *, total_items=None, total_pages=None, page_size=None, page_size_options=None, more=None, sibling_count=None, variant='', size=None, label='', disabled=False, **props) -> Noneparampageint= 1Current one-based page, synchronized as value.
paramtotal_itemsint | None= NoneTotal row count, used to derive the page count.
paramtotal_pagesint | None= NoneExplicit page count when the total row count is unknown.
parampage_sizeint | None= NoneRows per page.
parampage_size_optionsIterable[int] | None= NoneSelectable page sizes. Selecting one fires on_action.
parammorebool | None= NoneWhether more pages exist, for cursor-style paging.
paramsibling_countint | None= NonePage buttons shown either side of the current page.
paramvariantstr= ''Astryx visual variant.
paramsizestr | None= NoneControl size.
paramlabelstr= ''Accessible label for the control.
paramdisabledbool= FalseWhether the component should render disabled.
parampropsAny= {}Returns
None