F
Filamentβ€’7mo 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β€’7mo ago
SimplePagination has been enabled by the looks of it.
Rajunda
RajundaOPβ€’7mo ago
how to disable it?
LeandroFerreira
LeandroFerreiraβ€’7mo 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
RajundaOPβ€’7mo 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β€’7mo ago
Is it a custom page?
Rajunda
RajundaOPβ€’7mo 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β€’7mo ago
not sure. Was it working?
Rajunda
RajundaOPβ€’7mo ago
what was working?
Rajunda
RajundaOPβ€’7mo ago
btw, this is my list of plugins in my composer.json
No description
LeandroFerreira
LeandroFerreiraβ€’7mo ago
showing the numbers... you said "suddenly disappeared"
Rajunda
RajundaOPβ€’7mo ago
right now it's not showing any number...just like the first image in post, but the pagination is working fine
LeandroFerreira
LeandroFerreiraβ€’7mo ago
I'm trying to understand the issue better. Can you clarify when exactly it stops working, since you mentioned it happens suddenly?
Rajunda
RajundaOPβ€’7mo 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β€’7mo ago
maybe.. could you share a full image of your resource?
Rajunda
RajundaOPβ€’7mo ago
sure...
Rajunda
RajundaOPβ€’7mo ago
this is my resource class
No description
Rajunda
RajundaOPβ€’7mo ago
this is my manageRecords class
No description
LeandroFerreira
LeandroFerreiraβ€’7mo ago
sorry, I mean in the browser
Rajunda
RajundaOPβ€’7mo ago
this is the whole page of that resource
No description
LeandroFerreira
LeandroFerreiraβ€’7mo ago
How many records does your page have? total?
Rajunda
RajundaOPβ€’7mo ago
it has 29 records
toeknee
toekneeβ€’7mo ago
So limit the results to 5, do you not get indepth pagination?/
Rajunda
RajundaOPβ€’7mo ago
it's the same result as this
toeknee
toekneeβ€’7mo ago
Can you provide your List file? Is this the same for all resources?
toeknee
toekneeβ€’7mo 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β€’7mo ago
Are you using clusters?
Rajunda
RajundaOPβ€’7mo ago
yup I'm using clusters is that the problem?
Solution
LeandroFerreira
LeandroFerreiraβ€’7mo ago
try to add ->maxContentWidth('full') in the $panel
LeandroFerreira
LeandroFerreiraβ€’7mo ago
@Rajunda please let me know if it works ✌️
Rajunda
RajundaOPβ€’7mo ago
yup, it works now πŸ˜„ thanks πŸ‘
Want results from more Discord servers?
Add your server