Add Alpine Collapse plugin to dashboard

I've tried a few methods of adding the script tag for enabling the collapse alpine plugin (https://alpinejs.dev/plugins/collapse). I ended up using a render hook provider, and the PanelsRenderHook::SCRIPTS_BEFORE tag to ensure that the plugin script I added was before the alpine js script tag that filament loads. However, it seems that the alpine js filament is using is not compatible with this plugin? Any way to do this nicely? Thanks
Solution:
I had a bug in my code where my filament widget had different root elements. Sorry about that! The problem is resolved when fixed it.
Jump to solution
2 Replies
awcodes
awcodes8mo ago
What are you trying to do? collapse is already included.
Solution
Tonkawuck
Tonkawuck8mo ago
I had a bug in my code where my filament widget had different root elements. Sorry about that! The problem is resolved when fixed it.
Want results from more Discord servers?
Add your server