From c7049e3216d86f3d62b0787c6a95a668ccef16ce Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:47:31 +0200 Subject: [PATCH] docs: update controlled flow page --- docs/src/guide/controlled-flow.md | 73 ++++++++++++++++++++----------- 1 file changed, 48 insertions(+), 25 deletions(-) diff --git a/docs/src/guide/controlled-flow.md b/docs/src/guide/controlled-flow.md index d5662424..7bcd96d0 100644 --- a/docs/src/guide/controlled-flow.md +++ b/docs/src/guide/controlled-flow.md @@ -17,13 +17,14 @@ This guide will show you how to take control of Vue Flow and apply these changes ## The `applyChanges` option -The `applyChanges` option is a flag that can be passed to the `VueFlow` component to enable or disable automatic change handling. +The `applyChanges` option is a prop that can be passed to the `` component to enable or disable automatic change handling. -By setting this option to `false`, we tell Vue Flow to not apply changes automatically anymore. +By setting this option to `false`, we tell Vue Flow to not apply changes automatically anymore, +that way we can take control of changes and apply them manually. ```vue ``` @@ -34,14 +35,28 @@ These events are emitted regardless of the `applyChanges` option, so you can use ```vue ``` @@ -72,52 +87,60 @@ In this example, we will first disable automatic change handlers with `applyChan then use the `onNodesChange` event to listen to changes and validate delete changes and, if they are valid, use `applyNodeChanges` to apply them. +::: info +Checkout the [confirm delete example](/examples/confirm). +::: + ```vue ```