Pagination Totals on Single Page of Results #46618
Unanswered
ellastinnes1
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm displaying the pagination links as follows in my blade file:
This is displaying the pagination links and provides an overview on the total number of records:
However, when filtering the data and the total number of records can fit to a single page, both the pagination links and totals disappear.
I would expect the pagination links to disappear as they serve no purpose on a single page, however the totals are still useful as it prevents the user from manually counting the records:
The following code for outputting this string (https://github.com/laravel/framework/blob/10.x/src/Illuminate/Pagination/resources/views/tailwind.blade.php):
is wrapped within the following condition:
@if ($paginator->hasPages())
I understand that I could publish and make amendments to this file, but the default behaviour does not feel right - what am I missing here? I'm struggling to understand why the user has to manually count the records on a single page of results?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions