How to put the filter above in a custom dashboard page?

Hello, I have created a dashboard page that replaces the original one. I am customizing it so that a table and filters appear. I want these filters to appear at the top, but if I add the usual (up to version 2) getTableFiltersLayout, it doesn't work. How is it done now in the latest version of filament?
8 Replies
astronomic
astronomicOP9mo ago
Can anyone help me? It's just that I've already looked at the documentation and it's not clear to me. I only see one way to do it but it is with resources, and in my case it is a custom page
astronomic
astronomicOP9mo ago
Can I add this code to a custom page? public function table(Table $table): Table { return $table ->filters([ // ... ], layout: FiltersLayout::AboveContent); } How??
toeknee
toeknee9mo ago
Provide you page code.
toeknee
toeknee9mo ago
You are using v2 code for the table builder code. Migrate it to V3, roughly done to the attached for you.
Want results from more Discord servers?
Add your server