F
Filament2y 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
awcodes2y 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
AbiOP2y ago
ok, thank you

Did you find this page helpful?