diff --git a/docs/src/guide/vue-flow/config.md b/docs/src/guide/vue-flow/config.md index b403a8b3..26f9f835 100644 --- a/docs/src/guide/vue-flow/config.md +++ b/docs/src/guide/vue-flow/config.md @@ -722,6 +722,58 @@ const elements = ref([ Does not work for the `addEdge` utility! +### auto-connect + +- Type: `boolean` | [`Connector`](/typedocs/types/Connector.html/) + +- Default: `false` + +- Details: + + When connection is emitted, automatically create a new edge from params. + + Also accepts a [`Connector`](/typedocs/types/Connector.html/) which returns an edge-like object or false (if creating an edge is not allowed). + + This option can be used as a shorthand for `onConnect((params) => addEdges([params]))`. + +#### Examples + +##### Boolean value + +```vue:no-line-numbers{2} + +``` + +#### [Connector](/typedocs/types/Connector.html/) + +```vue:no-line-numbers{6-18,22} + + + +``` + ## Global Element Options ### only-render-visible-elements