vddl icon indicating copy to clipboard operation
vddl copied to clipboard

nested list by XMLHttpRequests

Open Lunatig opened this issue 7 years ago • 3 comments

Hello. When i do my list via XMLHttpRequests sorting not working properly.

if I move the container up, then the index of the top becomes the same as the lower one. that is, two identical containers are obtained.

nested-list.vue


 axios.get('/tree/'+this.item.id)
    .then(response => this.item.columns = response.data) 

if i load all tree with childrens at once sorting working normally.

Lunatig avatar Dec 19 '17 12:12 Lunatig

I found a solution just need to add type and columns for all childrens.

foreach($nodes as $node){ $node->type = 'container'; $node->columns = []; }

what about type i think is normally.

but without columns even in demo sorting not working properly.

Lunatig avatar Dec 19 '17 12:12 Lunatig

Can you elaborate on the features you want to achieve? If you need to synchronize the data dragged to the server, you can add the corresponding callback method.

hejianxian avatar Dec 19 '17 15:12 hejianxian

@hejianxian yes. i want to synchronize. right now sorting working perfect. some css tweaks and i have category tree with sorting for my base. untitled-4

Thank you

Lunatig avatar Dec 19 '17 16:12 Lunatig