Closed nazaninhesari closed 5 years ago
you can update the node children:
const nodePath = [1, 2, 3];
slVueTree.updateNode(
nodePath,
{children: [ ...slVueTree.getNode(nodePath ).children, { title: 'A New Child2'}]}
)
just what i have been looking for... Thanks @holiber
how add inserted in last children
this.$refs.slVueTree.insert({node:node,placement: "inside"}, { title:node.title,code:node.code});
this code add in first items