Alpine sort plugin on custom page
Hi I'm trying to use the alpine sort plugin on a custom page, but the console says "Alpine Warning: found "[x-sort]", but missing sort plugin". Shouldn't be all alpine plugins included by default is livewire is running?
9 Replies
register the plugin in your appserviceprovider
https://filamentphp.com/docs/3.x/support/assets#registering-javascript-files-from-a-url
Thank you! But why is it not already installed? As I understood livewire has all alpine plugins installed already
And doesn't it break in your example? When registering an alpine plugin manually you have to start livewire manually and after that aren't there 2 instances running in the admin panel?
Laravel
Upgrade Guide | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
not sort, I guess
thats weird ..
Not weird, check this https://github.com/filamentphp/filament/issues/12666
GitHub
Move to Alpine.js sortable plugin · Issue #12666 · filamentphp/fila...
Donate 💰 to fund this issue You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you. 100% of the funding will be distributed between the Filame...
@Vp As I understand this is about switching the sortable functionality for e.g. the repeater to the alpine sortable plugin. But what I mean is, I expected the plugin to be included in livewire as default so that it is available in the admin panel when I want to use it e.g. on a custom page. So it should not depend on what is used for the sorting functionality in the admin panel. But it seems that caleb did not included it in livewire yet
Yes, check the package.json
@Leandro Ferreira yes already saw it that there is no reference of the sort plugin in livewire package.json