Skip to Content
Patternfly Logo

Pagination table

Examples

Examples

Basic

0 - 0 of 0
0 - 0 of 0
TitleBody

The below example illustrates the defaultToFullPage prop, which makes the following changes when the user sets the number of items to display per page to an amount that exceeds the remaining amount of data:

  • The component automatically changes the page back to the last full page of results, rather than defaulting to the final page of results.

To demonstrate this, navigate to the last page of data below using the >> navigation arrows, then use the dropdown selector to change the view to 5 per page.

  • The default behavior would show the last page of results, which would only contain the last two rows (rows 11 - 12).
  • The defaultToFullPage prop navigates you back to the previous page which does contain a full page of 5 rows (rows 6 - 10).

Automated pagination table demo

1 - 10 of 12
1 - 10 of 12
First columnSecond columnThird column
Row 1 column 1Row 1 column 2Row 1 column 3
Row 2 column 1Row 2 column 2Row 2 column 3
Row 3 column 1Row 3 column 2Row 3 column 3
Row 4 column 1Row 4 column 2Row 4 column 3
Row 5 column 1Row 5 column 2Row 5 column 3
Row 6 column 1Row 6 column 2Row 6 column 3
Row 7 column 1Row 7 column 2Row 7 column 3
Row 8 column 1Row 8 column 2Row 8 column 3
Row 9 column 1Row 9 column 2Row 9 column 3
Row 10 column 1Row 10 column 2Row 10 column 3