From 04524d27fd8b48145dc48093938771cc38285e95 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 20 Jun 2024 10:20:09 +0200 Subject: [PATCH] chore(docs): add info on v-model --- docs/src/guide/node.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/guide/node.md b/docs/src/guide/node.md index a80cc8f4..73bd1902 100644 --- a/docs/src/guide/node.md +++ b/docs/src/guide/node.md @@ -241,6 +241,11 @@ function onAddNodes() { ::: +::: info +If you want to have two-way binding of nodes, use `v-model:nodes="nodes"`. +This will allow you to mutate *your* nodes and have the changes reflected in the graph. +::: + ## Removing Nodes from the Graph Similar to adding nodes, nodes can be removed from the graph by removing them from the `mode-value` (using `v-model`) or from the `nodes` prop of the Vue Flow component.