Pagination table
ExamplesExamples
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
First column | Second column | Third column |
---|---|---|
Row 1 column 1 | Row 1 column 2 | Row 1 column 3 |
Row 2 column 1 | Row 2 column 2 | Row 2 column 3 |
Row 3 column 1 | Row 3 column 2 | Row 3 column 3 |
Row 4 column 1 | Row 4 column 2 | Row 4 column 3 |
Row 5 column 1 | Row 5 column 2 | Row 5 column 3 |
Row 6 column 1 | Row 6 column 2 | Row 6 column 3 |
Row 7 column 1 | Row 7 column 2 | Row 7 column 3 |
Row 8 column 1 | Row 8 column 2 | Row 8 column 3 |
Row 9 column 1 | Row 9 column 2 | Row 9 column 3 |
Row 10 column 1 | Row 10 column 2 | Row 10 column 3 |