Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

MedSpec's avatar

MedSpec wrote a comment+100 XP

4mos ago

Everything New in Livewire 4: Ep 19, Drag and Drop Sorting

i added this "gem"

<flux:kanban.column.cards 
    wire:sort="sortTask"
    wire:sort:group="tasks" 
    data-status="{{ $status->value }}"
    wire:sort:config="{ 
        onSort: () => {},
        onAdd: (e) => { 
            const newStatus = e.to.dataset.status;
            const taskId = e.item._x_sort_key;
            const position = e.newIndex;
            $wire.sortTask(taskId, position, newStatus);
        },
        onUpdate: (e) => {
            const taskId = e.item._x_sort_key;
            const position = e.newIndex;
            $wire.sortTask(taskId, position);
        }
    }"
>
MedSpec's avatar

MedSpec wrote a comment+100 XP

4mos ago

Everything New in Livewire 4: Ep 19, Drag and Drop Sorting

@Swaz looking for this also. weird thing for me is also that it mentions "across groups" but we have to name the group the same... i am missing something obvious i think