Package org.patternfly.component.pagination
package org.patternfly.component.pagination
A pagination component that allows users to navigate through large content views split across multiple pages.
This package provides the Pagination component along with its
supporting classes for managing pagination state, page sizes, display variants, and navigation events.
Key classes
Pagination— The main pagination component with page navigation controls, page size selection, and range display.PageInfo— Immutable record holding pagination state: current page (1-based), page size, and total item count. Supports indeterminate totals.Display— Modifier enum for display variants (summary vs full).PaginationHandler— Functional interface for pagination navigation events.
Usage
Creating a pagination component with a known total:
import static org.patternfly.component.pagination.Pagination.pagination;
pagination(PageInfo.of(20, 536))
.onNext((event, pagination, pageInfo) -> updateContent(pageInfo))
.onPrevious((event, pagination, pageInfo) -> updateContent(pageInfo));
Creating an indeterminate pagination (total unknown):
pagination(PageInfo.indeterminate());
- See Also:
-
ClassDescriptionImmutable pagination state: current page (1-based), page size, and total item count.A pagination component allows users to navigate through large content views that have been split across multiple pages.Handler for pagination navigation events.