F
Filament12mo ago
Abi

Calling a javascript function from a table action

I have a custom action on a standalone filament table. Is there a way to call a javascript function when the action is clicked?
2 Replies
awcodes
awcodes12mo ago
Add a click listener to the button in your JS file? If it’s a specific button you can ->addExtraAttributes([‘class’ => ‘some-button’]) to make it easier to target from the JS.
Abi
Abi12mo ago
ok, thank you