© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Hurruwa

Use a function (): Action from a Resource ?

Hi, im trying to launch an Action from a function in a resource component but im not getting any response... Any ideas? This is the code i have so far:
public function saveSelectedText(): \Filament\Forms\Components\Actions\Action
    {
        return Action::make('save')->label('Save')->action(function () {
            dd($this->selectedText);
        });
    }
public function saveSelectedText(): \Filament\Forms\Components\Actions\Action
    {
        return Action::make('save')->label('Save')->action(function () {
            dd($this->selectedText);
        });
    }
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Mount action from resource
FilamentFFilament / ❓┊help
15mo ago
Call async JavaScript function from a Action
FilamentFFilament / ❓┊help
2y ago
Calling a javascript function from a table action
FilamentFFilament / ❓┊help
3y ago
Action call from livewire function
FilamentFFilament / ❓┊help
3y ago