Pagination Strategies
Pagination is the part of table testing that most often depends on your app. Smart Table does not guess how your UI moves; you describe the movement with a pagination strategy.
This page shows common pagination shapes and the strategy primitive that usually fits.
StrategiesHover a pagination shape
Table FooterNext / Previous buttons
Use this for classic pagination components where Smart Table can click one page at a time.
| Name | Office | Status |
|---|---|---|
| Airi Satou | Tokyo | Active |
| Brielle Williamson | New York | Active |
What To Notice
goNextandgoPreviousare enough for simple one-page-at-a-time searches.goToFirstis useful when a scan or reset should start from page one.goToLastenables optimal path planning (wrap-around) when navigating to distant pages.goToPagefits numbered pagination or page inputs.numberOfPagesallows Smart Table to calculate the most efficient path between distant pages (e.g., jumping to the last page first).- Infinite scroll and load-more UIs still use the pagination strategy slot; the strategy just scrolls or loads instead of clicking a numbered pagination component.
Each primitive should return true when movement happened and false when there is nowhere else to go. For exact signatures, see Pagination Strategies.