Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
feat(Pagination): automate pagination and overflow logic #3182
This feature allows the component to automatically paginate the users's data for them, and provides a "defaultToFullPage" flag that will automatically move the user back to the last full page of results when they change the number of rows to view per page.
@@ Coverage Diff @@ ## master #3182 +/- ## ========================================== - Coverage 67.52% 67.52% -0.01% ========================================== Files 896 896 Lines 25112 25133 +21 Branches 2173 2178 +5 ========================================== + Hits 16958 16971 +13 - Misses 7141 7147 +6 - Partials 1013 1015 +2
dlabrecq left a comment
How are these utils used with the pagination component?
I'm also curious how does this solve #1567 (e.g., using an offset). There is no example showing usage?
Ideally, the pagination component would be able to figure out what page you're on based on the total available rows and number of items per page.
…o Navigation and PaginationOptionsMenu. onSetPage and onPerPageSelect now return 5 values each for use in automating pagination
Your changes have been released in:
Thanks for your contribution!