livewire-sortablejs icon indicating copy to clipboard operation
livewire-sortablejs copied to clipboard

How to get group parent

Open ArtMin96 opened this issue 3 years ago • 0 comments

How to get the group parent after dragging into another group?

[
    [
        'order' => 1,            // order of group (starts at 1, not 0)
        'value' => 20,           // group id
        'items' => [
            [
                'order' => 1,    // order of item within group (starts at 1, not 0)
                'value' => 50,   // item id
            ]
        ]
    ]
]

Also, groups that do not have a parent cannot become children of another group. How can I fix that? I use this part Multiple draggable groups with draggable items

ArtMin96 avatar Feb 18 '22 18:02 ArtMin96