Action inside a custom widget

I'm trying to include an action inside a custom widget. The problem is that if I click on the action button the dialog doesn't open even if I've included the <x-filament-actions::modals /> in the widget blade. Any idea of what's going on?
No description
No description
Solution:
Action name and method must match: Action::make('testAction')
Jump to solution
14 Replies
Dennis Koch
Dennis Koch2y ago
Please share the action code
pepe.nectar
pepe.nectarOP2y ago
Nothing fancy, an action which requires confirmation, with a placeholder test and something to show from the js side when the action button is clicked
No description
pepe.nectar
pepe.nectarOP2y ago
I already have some similar actions but in tables not in a widget
Solution
Dennis Koch
Dennis Koch2y ago
Action name and method must match: Action::make('testAction')
pepe.nectar
pepe.nectarOP2y ago
Ouch! one sec, I try Yeahh!!! You make my day!!!
Dennis Koch
Dennis Koch2y ago
Or just Action::make('test') I think. Does that also work? That's how it's noted in the docs.
pepe.nectar
pepe.nectarOP2y ago
Oh man! I was pulling my hair! I miss that part from the docs! I've read it several times I was just thinking in giving up!, again thank you so much!
Dennis Koch
Dennis Koch2y ago
Does Action::make('test') work?
pepe.nectar
pepe.nectarOP2y ago
give me a second
Dennis Koch
Dennis Koch2y ago
That's how it's mentioned in the docs. Otherwise, we need to update that part.
pepe.nectar
pepe.nectarOP2y ago
Yep, it also works!
Dennis Koch
Dennis Koch2y ago
Nice.
pepe.nectar
pepe.nectarOP2y ago
Again, thank you for your kind support!
pepe.nectar
pepe.nectarOP2y ago
Have a nice day!!

Did you find this page helpful?