vddl
vddl copied to clipboard
nested list by XMLHttpRequests
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.
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.
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
yes. i want to synchronize.
right now sorting working perfect.
some css tweaks and i have category tree with sorting for my base.
Thank you