© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
danielspravtsev

How to trigger table action outside table with AlpineJS?

I have following table action. How to trigger it (and pass record id) from menu.blade(not filament admin) with alpinejs?

protected function getTableActions(): array
{
return [
Action::make('balance')
->label('Change balance')
->form([
TextInput::make('new_balance')
->default(fn (Sim $record) => $record->balance)
->label('New balance')
->numeric()
->step(0.01)
->minValue(0)
->required()
])
->action(function (Sim $record, array $data){
$record->update(['balance' => $data['new_balance']]);
Notification::make()->success()->title('Balance updated!')->send();
})
->modalButton('Update balance'),
];
}
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

Action with AlpineJS
FilamentFFilament / ❓┊help
3y ago
How to trigger a livewire component on table action
FilamentFFilament / ❓┊help
3y ago
How to trigger an action from another action?
FilamentFFilament / ❓┊help
14mo ago
trigger action
FilamentFFilament / ❓┊help
11mo ago