FilamentF
Filament3y ago
Andy

Standalone action not hiding

I'm getting what feels like weird behaviour with an action. I'd like to conditionally hide the action but using ->hidden() just disables it.

    public function testAction(): Action
    {
        return Action::make('test')
            ->hidden()
            ->label('Test Action')
            ->action(fn () => dd('TODO'));
    }
Screenshot_2023-12-12_at_09.29.18.png
Was this page helpful?