Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’2y agoβ€’
30 replies
damarev

$getAction() with arguments

Is it possible to render a Infolists\Components\Actions\Action registered on a Infolists\Components\Entry via $this->registerActions(), passing arguments from the view?

I have:
class TranslationsInfo extends \Filament\Infolists\Components\Entry
{
    protected string $view = 'infolists.components.translations-info';
    protected function setUp(): void
    {
        parent::setUp();
        $this->registerActions([
            Action::make('myAction')
                ->action(function (array $arguments) {
                    dump($arguments['language']);
                })
        ]);
    }
}
class TranslationsInfo extends \Filament\Infolists\Components\Entry
{
    protected string $view = 'infolists.components.translations-info';
    protected function setUp(): void
    {
        parent::setUp();
        $this->registerActions([
            Action::make('myAction')
                ->action(function (array $arguments) {
                    dump($arguments['language']);
                })
        ]);
    }
}


I have tried with no result:

{{ $getAction('myAction', ['language' => 'es']) }}
{{ $getAction('myAction')->arguments(['language' => 'es']) }}
{{ $getAction('myAction')(['language' => 'es']) }}
{{ ($this->myAction)(['language' => 'es']) }}
{{ $getAction('myAction', ['language' => 'es']) }}
{{ $getAction('myAction')->arguments(['language' => 'es']) }}
{{ $getAction('myAction')(['language' => 'es']) }}
{{ ($this->myAction)(['language' => 'es']) }}
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

$getAction() and visibility
FilamentFFilament / β“β”Šhelp
2y ago
CreateAction with arguments
FilamentFFilament / β“β”Šhelp
2y ago
filament 2.0 page getaction add button to open model
FilamentFFilament / β“β”Šhelp
3y ago
App\Filament\Pages\Tenancy\EditTeamProfile does not implement methods 'getAction', 'getAct
FilamentFFilament / β“β”Šhelp
3y ago