Filter above custom page HasTable

How can I place filters above the table on a custom page?
I tried these two but it doesn't work:
use Filament\Tables\Enums\FiltersLayout;

protected function getTableFiltersLayout(): FiltersLayout
{
   return FiltersLayout::AboveContent;
}

and

protected function getFiltersLayout(): FiltersLayout
{
   return FiltersLayout::AboveContentCollapsible;
}
Solution
Is this still v2? Or did you just not update the syntax?
Was this page helpful?