F
Filament17mo 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
awcodes17mo 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
AbiOP17mo ago
ok, thank you
Want results from more Discord servers?
Add your server