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