FilamentF
Filament16mo ago
kisut

Disable Reorder Table on View

Hi,

I use relation manager and enable reoder, everything works normally. But I want reoder only active on edit page, how to implement it?

I used visible/hidden but both are inactive (view and edit page).

Thanks
Solution
something like this?
->reorderable(fn () => str($this->getPageClass())->contains('EditPost') ? 'sort' : null)
Was this page helpful?