phphe / vue-draggable-nested-tree

Vue2 draggable tree component
https://hetree.phphe.com/
MIT License
345 stars 62 forks source link

How to specify a drag handler ? #63

Closed sunchayn closed 5 years ago

sunchayn commented 5 years ago

Hey there, I'm wondering how to specify a element to be used as the drag handler ?

In case you don't understand what I meant, it basically would be something like this

Capture

phphe commented 5 years ago

https://github.com/phphe/vue-draggable-nested-tree#tree-props example: getTriggerEl(nodeVm){ return nodeVm.$el.querySelector('.drag-handler') }

sunchayn commented 5 years ago

Thanks for providing the example 👍 , I stumbled upon that method and it confused me as it's unconventional, it would be more helpful if the name was setTriggerEl().