Pagination
Description
A component to navigate through pages
Pagination allows users to navigate through a large set of data by breaking it into smaller, manageable chunks called pages.
It provides controls to move between pages, jump to specific pages, and see the current position within the total set.
API reference
public sealed class Pagination : ComponentBase<Pagination, HTMLElement>A page-number navigation strip used to walk through pages of results.
Constructors
Properties
public int MaxPageButtons { get ; set ; }Gets or sets the max page buttons.
Methods
public Pagination SetTotalItems(int totalItems)Sets the total items of the component.
public Pagination SetPageSize(int pageSize)Sets the page size of the component.
public Pagination SetPage(int page, bool raiseEvent = true)Sets the page of the component.
public Pagination OnPageChange(Action<Pagination> onPageChange)Registers a callback invoked when the page change event fires.