F
Filament4mo 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)
->reorderable(fn () => str($this->getPageClass())->contains('EditPost') ? 'sort' : null)
...
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira4mo ago
something like this?
->reorderable(fn () => str($this->getPageClass())->contains('EditPost') ? 'sort' : null)
->reorderable(fn () => str($this->getPageClass())->contains('EditPost') ? 'sort' : null)
kisut
kisutOP4mo ago
Thank you, it works!
Want results from more Discord servers?
Add your server