Hi,
I just installed the package according to the instructions (from npm + added the lines in the app.js). I added the attributes to the differents elements like the doc :
<ul wire:sortable="updateTaskOrder" wire:sortable.options="{ animation: 100 }">
@foreach ($tasks as $task)
<li wire:sortable.item="{{ $task->id }}" wire:key="task-{{ $task->id }}">
<h4>{{ $task->title }}</h4>
<button wire:sortable.handle>drag</button>
</li>
@endforeach
</ul>
But the handle doesn't do anything when I am clicking and dragging.
Is there a way to make sure the elements are correctly loaded ?
I am trying to use the inside a tbody (to drag / sort tr)
Should I also import and assign to the window Sortable ?
or is it included in your instructions ?
Thank you
Hi,
I just installed the package according to the instructions (from npm + added the lines in the app.js). I added the attributes to the differents elements like the doc :
But the handle doesn't do anything when I am clicking and dragging.
Is there a way to make sure the elements are correctly loaded ?
I am trying to use the inside a tbody (to drag / sort
tr)Should I also import and assign to the
windowSortable ?or is it included in your instructions ?
Thank you