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
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
Can I add this code to a custom page?
public function table(Table $table): Table
{
return $table
->filters([
// ...
], layout: FiltersLayout::AboveContent);
}
How??Provide you page code.