Change Filter Position on a custom table component

I created a custom table component in livewire but I want to change the filter positions to be at the top how best can i do that .I have used this layout method but seems not to work
protected function getTableFiltersLayout(): ?string
    {

        return Layout::AboveContent;
    }
but does not work
Was this page helpful?