Pager Overview
The KendoReact Pager provides options for splitting content into pages.
The KendoReact Pager is part of the KendoReact library of React UI components. It is distributed through NPM under the kendo-react-data-tools package.
Basic Usage
You can configure the Pager by using the following properties:
buttonCount
—Sets the maximum numeric buttons count before the buttons are collapsed.info
—Toggles the information about the current page and the total number of records.type
—Accepts thenumeric
(buttons with numbers) andinput
(input for typing the page number) values.pageSizes
—Displays a menu for selecting the page size.previousNext
—Toggles the Previous and Next buttons.
Responsive Design
The Pager supports responsive web-design by adapting its layout based on the set width or the available screen size.
There are three breaking points which determine the visibility of the internal group of elements:
pagerWidth >= 768px
- When the Pager width is greater than or equal to 768 pixels, all elements are visible.768px < pagerWidth <= 600px
- When the Pager width is less than 768px, the Info element is hidden.pagerWidth > 600px
- When the Pager width is less than 600px, the PageSizes element is also hidden. If the Pagertype
isnumeric
, the page number buttons are replaced with a Select element.
Try to resize the browser width to see the different layouts:
Functionality and Features
The Pager provides globalization support.