F
Filamentβ€’7mo ago
Weccop

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:
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.
Jump to solution
7 Replies
awcodes
awcodesβ€’7mo ago
Is the calendar a livewire component or a js component.
Weccop
Weccopβ€’7mo ago
It's an Livewire component.
toeknee
toekneeβ€’7mo ago
Just use #saade-fullcalendar ?
Weccop
Weccopβ€’7mo ago
That one doesnt fit my needs.
toeknee
toekneeβ€’7mo ago
Then use that as your code example as it's doing what you are mentioning above πŸ™‚
Weccop
Weccopβ€’7mo ago
I will definitely do that.
Solution
Weccop
Weccopβ€’7mo ago
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.