You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using v-model="pointer" to track the currently selected node. however, if I add a child node using the below code it does not reflect under this.pointer.children array. How can the under lying graph object be updated from the parent component?
yes youre right. use :key for update your DOM whenever your state updated. your code should by s.t like this: <tree :key="counter" ref="tree" class="tree-class" :data="graph" v-model="pointer" node-text="name" layoutType="horizontal" :identifier="getId" @clickedText="onNodeTextClick" :zoomable="true" :marginX="0" :marginY="0"/>`
I am using v-model="pointer" to track the currently selected node. however, if I add a child node using the below code it does not reflect under this.pointer.children array. How can the under lying graph object be updated from the parent component?
component definition:
<tree ref="tree" class="tree-class" :data="graph" v-model="pointer" node-text="name" layoutType="horizontal" :identifier="getId" @clickedText="onNodeTextClick" :zoomable="true" :marginX="0" :marginY="0">
The text was updated successfully, but these errors were encountered: