Help with action modal
Hi everyone,
I'm trying to have a action modal rendered via a panel render hook, but I can't seem to get the action to do anything. Trying multiple YouTube videos/tutorials, it's not even giving me an error, just not doing anything.
Livewire component:
And How I render it:
Any help appreciated.
Solution:Jump to solution
rename renderHotelSwitch function to
switchHotelAction
Then, use
{{ $this->switchHotelAction }}
...5 Replies
Also the view:
Solution
rename renderHotelSwitch function to
switchHotelAction
Then, use
{{ $this->switchHotelAction }}
Ayyy lmao that worked
Probably missed that magic in the documentation?
I'll double check, if not I'll send PR to update docs
The method must share the exact same name as the action, or the name followed by Action
https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component#adding-the-action
I guess I'm just bad at reading documentation. Thanks a lot friend!