Change filter layout

I am using filament tables in my livewire project and everything works fine but I want to shift the filters above my table How best can I do that tried this method but seems not to work and also I am using to find the trait that can do that
use Filament\Tables\Filters\Layout;

protected function getTableFiltersLayout(): ?string
{
return Layout::AboveContent;
}
use Filament\Tables\Filters\Layout;

protected function getTableFiltersLayout(): ?string
{
return Layout::AboveContent;
}
2 Replies
mvenghaus
mvenghaus9mo ago
that is filament v2 style add a second parameter to filters
->filters([..], FiltersLayout::AboveContent)
->filters([..], FiltersLayout::AboveContent)
codeartisan
codeartisanOP9mo ago
thank you it works
Want results from more Discord servers?
Add your server