Using Filters AboveContent, how to set number of columns?

Hi, I know that if we are using the table inside a livewire component we can use the function getTableFiltersFormColumns() to set the number of columns, how can we do the same if we are using the admin panel?
8 Replies
LeandroFerreira
LeandroFerreiraβ€’2y ago
maybe the same method in the List page..? https://filamentphp.com/docs/2.x/tables/filters#appearance
tiago.pereira
tiago.pereiraOPβ€’2y ago
Already tried that but since im using the admin panel it does not work, if im using the tables as a standalone it works
LeandroFerreira
LeandroFerreiraβ€’2y ago
Should work:
tiago.pereira
tiago.pereiraOPβ€’2y ago
are you putting that inside the Resource class? even to put the filters above the table i need to use this instead of the function getTableFiltersLayout() https://filamentphp.com/docs/2.x/admin/resources/listing-records#displaying-filters-above-or-below-the-table-content
LeandroFerreira
LeandroFerreiraβ€’2y ago
nope.. in the List page. In this example, app/Filament/Resources/PostResource/Pages/ListPosts.php
tiago.pereira
tiago.pereiraOPβ€’2y ago
oh you are right and i already did that for other things now i was not remembering about the list page
LeandroFerreira
LeandroFerreiraβ€’2y ago
no worries πŸ‘
tiago.pereira
tiago.pereiraOPβ€’2y ago
thanks
Want results from more Discord servers?
Add your server