F
Filamentβ€’12mo 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β€’12mo ago
Is the calendar a livewire component or a js component.
Weccop
WeccopOPβ€’12mo ago
It's an Livewire component.
toeknee
toekneeβ€’12mo ago
Just use #saade-fullcalendar ?
Weccop
WeccopOPβ€’12mo ago
That one doesnt fit my needs.
toeknee
toekneeβ€’12mo ago
Then use that as your code example as it's doing what you are mentioning above πŸ™‚
Weccop
WeccopOPβ€’12mo ago
I will definitely do that.
Solution
Weccop
Weccopβ€’12mo 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.
Want results from more Discord servers?
Add your server