phphe/he-tree-vue

Allow drag and drop only between nodes of the same level

Alberz opened this issue · 2 comments

I make it finally checking nodes with ondragend

I make it finally checking nodes with ondragend

HOW? i don't understand how it works. Events seems like not working at all(

phphe commented

For your requirement, when drag start(drag event), walk all nodes and set their '$droppable' property by their level and dragging node level.