sim-tree icon indicating copy to clipboard operation
sim-tree copied to clipboard

get the clicked node

Open yonixw opened this issue 6 years ago • 0 comments

Currently, onClick() callback gives every selected node. I wanted to get only the selected node.

need to change this line: https://github.com/linjingming/sim-tree/blob/master/src/simTree.js#L342 to $($tar[0].parentElement).data()

My solution (in the distro): image

Maybe pass the selected node data in the first param and the list in the second?

yonixw avatar Sep 22 '19 15:09 yonixw