phphe / vue-draggable-nested-tree

Vue2 draggable tree component

Home Page:https://hetree.phphe.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to specify a drag handler ?

sunchayn opened this issue · comments

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

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

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().