Open action modal with javascript?

I use FullCalendar within a Livewire component. When I move an event, the moved() function is called. How can I trigger a modal to open when moving the event, so that the user has to confirm the action? I there any way to open the action modal instead of clicking the action button?
1 Reply
Dennis Koch
Dennis Koch2y ago
I think something like this. $emit('open-modal', 'your-action')

Did you find this page helpful?