sl-vue-tree icon indicating copy to clipboard operation
sl-vue-tree copied to clipboard

How to Add Node on Empty Tree

Open fin-k opened this issue 4 years ago • 0 comments

Hi,

I know how to insert node to tree.

var lastNode = this.$refs.slVueTree.getLastNode();
this.$refs.slVueTree.insert(
      { 
        node: lastNode,
        placement: 'after'
      }
      , 
      { title: 'Node Test'}
);

But how can we insert node on empty tree? What object we must put on position params?

fin-k avatar Jun 22 '21 17:06 fin-k