Open modal from custom page
What are the options with Filament and Livewire to open an modal from a link? I have a custom Filament page with an calendar on it. In the calendar I want to be able to click a cell and trigger and modal with some form inputs using the form builder. For some reason I cannot find what the best way to do this.
Solution:Jump to solution
Got it working with the mountAction option. I call a method in the livewire component using wire:click and in this method I mount the action. This results in opening an slide over :). Thanks for pointing me into the right direction.
7 Replies
Is the calendar a livewire component or a js component.
It's an Livewire component.
Just use #saade-fullcalendar ?
That one doesnt fit my needs.
Then use that as your code example as it's doing what you are mentioning above π
I will definitely do that.
Solution
Got it working with the mountAction option. I call a method in the livewire component using wire:click and in this method I mount the action. This results in opening an slide over :). Thanks for pointing me into the right direction.