Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nested list by XMLHttpRequests #25

Open
Lunatig opened this issue Dec 19, 2017 · 3 comments
Open

nested list by XMLHttpRequests #25

Lunatig opened this issue Dec 19, 2017 · 3 comments

Comments

@Lunatig
Copy link

Lunatig commented Dec 19, 2017

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
Copy link
Author

Lunatig commented Dec 19, 2017

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.

@hejianxian
Copy link
Owner

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.

@Lunatig
Copy link
Author

Lunatig commented Dec 19, 2017

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants