phphe/vue-draggable-nested-tree

Find replaced node

miso25 opened this issue · 1 comments

Hi, is there any way to find out the replaced node after dragend? Or find the node by its index (to find the node before the one i just dropped)?

i just found your answer in #89

// previousSibling
index = dplh.parent.children.indexOf(dplh)
dplh.parent.children[index-1]

this is what i needed