docs: move examples into nodes and edges dir

This commit is contained in:
bcakmakoglu
2022-06-25 00:36:48 +02:00
committed by Braks
parent 89daa827f3
commit 7534ad9304
9 changed files with 22 additions and 12 deletions
+22
View File
@@ -0,0 +1,22 @@
---
pageClass: examples
---
# Updatable Edge
Existing edges can be updated, meaning their source / target position can be changed interactively.
Update an edge by simply dragging it from one node to another at the edge-anchor (handles).
You can enable updating edges either globally by passing the `edgesUpdatable` prop or you can enable it
for specific edges by using the `updatable` attribute.
<div class="mt-6">
<client-only>
<Suspense>
<Repl example="updateEdge"></Repl>
</Suspense>
</client-only>
</div>