holiber / sl-vue-tree

Customizable draggable tree component for Vue.js
https://holiber.github.io/sl-vue-tree/
MIT License
345 stars 78 forks source link

Add new node after selectedNode #80

Open rjvim opened 4 years ago

rjvim commented 4 years ago

insert function needs cursor position to insert a new node.

Is it possible to give some idea on how to insert a new node programmatically when it's not dropped etc., but add a new node as after or before an existing node or path.