F
Filamentβ€’2mo ago
Rajunda

Number of pages in pagination suddenly disappeared

at first my table was like image number 2, but I don't know when suddenly it changed to image number 1, is there any settings/configuration that I missed? I want to get it back to image number 2 because I need number of pages and showing number of records, fyi I have 3 pages on that table
No description
No description
Solution:
try to add ->maxContentWidth('full') in the $panel
Jump to solution
30 Replies
toeknee
toekneeβ€’2mo ago
SimplePagination has been enabled by the looks of it.
Rajunda
Rajundaβ€’2mo ago
how to disable it?
LeandroFerreira
LeandroFerreiraβ€’2mo ago
Simple pagination can be auto enabled based on the size of the area where you are rendering the table. If the area is small, simple pagination will be enabled.
Rajunda
Rajundaβ€’2mo ago
I have 2 tables, each has different size but simple pagination still enabled, I want my users can see number of records and pages so that they can see how many records and freely paginate the pages
No description
No description
LeandroFerreira
LeandroFerreiraβ€’2mo ago
Is it a custom page?
Rajunda
Rajundaβ€’2mo ago
both are resources but the first one is complete resources and the last one is simple resources and I don't see anywhere that I enable simple pagination, is it possible it caused by a plugin?
LeandroFerreira
LeandroFerreiraβ€’2mo ago
not sure. Was it working?
Rajunda
Rajundaβ€’2mo ago
what was working?
Rajunda
Rajundaβ€’2mo ago
btw, this is my list of plugins in my composer.json
No description
LeandroFerreira
LeandroFerreiraβ€’2mo ago
showing the numbers... you said "suddenly disappeared"
Rajunda
Rajundaβ€’2mo ago
right now it's not showing any number...just like the first image in post, but the pagination is working fine
LeandroFerreira
LeandroFerreiraβ€’2mo ago
I'm trying to understand the issue better. Can you clarify when exactly it stops working, since you mentioned it happens suddenly?
Rajunda
Rajundaβ€’2mo ago
oh, that is I'm not sure, like I said 'I don't know when', because I'm not really pay attention at first, but when my users point the issue and then I just realized it maybe I can remove the plugin one by one to see wether it fix the issue or not... actually if I could I don't want really to do that, but I will do it as last resort if I can't find the solution related to this issue
LeandroFerreira
LeandroFerreiraβ€’2mo ago
maybe.. could you share a full image of your resource?
Rajunda
Rajundaβ€’2mo ago
sure...
Rajunda
Rajundaβ€’2mo ago
this is my resource class
No description
Rajunda
Rajundaβ€’2mo ago
this is my manageRecords class
No description
LeandroFerreira
LeandroFerreiraβ€’2mo ago
sorry, I mean in the browser
Rajunda
Rajundaβ€’2mo ago
this is the whole page of that resource
No description
LeandroFerreira
LeandroFerreiraβ€’2mo ago
How many records does your page have? total?
Rajunda
Rajundaβ€’2mo ago
it has 29 records
toeknee
toekneeβ€’2mo ago
So limit the results to 5, do you not get indepth pagination?/
Rajunda
Rajundaβ€’2mo ago
it's the same result as this
toeknee
toekneeβ€’2mo ago
Can you provide your List file? Is this the same for all resources?
toeknee
toekneeβ€’2mo ago
The only way we can create what you have above, is by enabling simple pagination as per: https://filamentphp.com/docs/3.x/tables/advanced#using-simple-pagination
LeandroFerreira
LeandroFerreiraβ€’2mo ago
Are you using clusters?
Rajunda
Rajundaβ€’2mo ago
yup I'm using clusters is that the problem?
Solution
LeandroFerreira
LeandroFerreiraβ€’2mo ago
try to add ->maxContentWidth('full') in the $panel
LeandroFerreira
LeandroFerreiraβ€’2mo ago
@Rajunda please let me know if it works ✌️
Rajunda
Rajundaβ€’2mo ago
yup, it works now πŸ˜„ thanks πŸ‘