chore(docs): update validation example

This commit is contained in:
braks
2024-06-17 18:52:11 +02:00
parent 889797e684
commit 55a76cd9ad
4 changed files with 39 additions and 23 deletions
+8 -4
View File
@@ -9,10 +9,14 @@ This function will be applied to *all* connections in the flow (even existing on
## Using a handle in a custom node
```vue
<div>
<!-- ... -->
<Handle type="source" :is-valid-connection="isValidConnection"/>
</div>
<script setup>
import { Handle, Position } from '@vue-flow/core'
</script>
<template>
<Handle type="source" :position="Position.Right" />
<Handle type="target" :position="Position.Left" />
</template>
```
<div class="mt-6">