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?
ThanksSolution:Jump to 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.
2 Replies