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