chore(docs): add info on v-model

This commit is contained in:
braks
2024-06-20 10:20:09 +02:00
parent 182a6d9263
commit 04524d27fd

View File

@@ -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.