Implement js library in custom widget
I have an app running on Inertia/Vue that I'm considering switching to Filament. My only hangup right now is that this app uses fullcalendar.io and specifically I need to render custom content for the event. I am aware of the fullcalendar plugin and have asked this question on that plugin's server but haven't gotten a response (https://discord.com/channels/883083792112300104/935819320699805737/1133498041144463411)
What I am wondering is if there is any way in Filament/Livewire/Alpine to make use of the content injection functionality offered by fullcalendar (https://fullcalendar.io/docs/content-injection). Using the Vue fullcalendar library, this is trivial because I can simply return a Vue component to the eventContent function since, in the background, fullcalendar is using VDOM (preact).
I realized I can create this HTML in a string in javascript and use the "arg" parameter that provides the calendar event for dynamic content but I am looking for a more elegant way to do this.
Trying to do this in Filament may not be a good fit but want to get some advice before writing off Filament for this project. Thanks
What I am wondering is if there is any way in Filament/Livewire/Alpine to make use of the content injection functionality offered by fullcalendar (https://fullcalendar.io/docs/content-injection). Using the Vue fullcalendar library, this is trivial because I can simply return a Vue component to the eventContent function since, in the background, fullcalendar is using VDOM (preact).
I realized I can create this HTML in a string in javascript and use the "arg" parameter that provides the calendar event for dynamic content but I am looking for a more elegant way to do this.
Trying to do this in Filament may not be a good fit but want to get some advice before writing off Filament for this project. Thanks
Solution
Okay so I have something like this:
Widget.php
resources/views/filament/widgets/full-calendar-test.blade.php
It's not a perfect solution I think, but you have something works
Widget.php
resources/views/filament/widgets/full-calendar-test.blade.php
It's not a perfect solution I think, but you have something works