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 Koch10mo ago
Please share the action code
pepe.nectar
pepe.nectar10mo 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.nectar10mo ago
I already have some similar actions but in tables not in a widget
Solution
Dennis Koch
Dennis Koch10mo ago
Action name and method must match: Action::make('testAction')
pepe.nectar
pepe.nectar10mo ago
Ouch! one sec, I try Yeahh!!! You make my day!!!
Dennis Koch
Dennis Koch10mo ago
Or just Action::make('test') I think. Does that also work? That's how it's noted in the docs.
pepe.nectar
pepe.nectar10mo 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 Koch10mo ago
Does Action::make('test') work?
pepe.nectar
pepe.nectar10mo ago
give me a second
Dennis Koch
Dennis Koch10mo ago
That's how it's mentioned in the docs. Otherwise, we need to update that part.
pepe.nectar
pepe.nectar10mo ago
Yep, it also works!
Dennis Koch
Dennis Koch10mo ago
Nice.
pepe.nectar
pepe.nectar10mo ago
Again, thank you for your kind support!
pepe.nectar
pepe.nectar10mo ago
Have a nice day!!