docs: Add examples

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 6d7b5daadd
commit 1ad66be474
16 changed files with 376 additions and 3 deletions
+27
View File
@@ -0,0 +1,27 @@
---
pageClass: examples
---
# Nested Nodes
One of the big new features in 0.4.0 is nested nodes.
You can define parents of a node, which are then nested inside that node.
You can also define the boundaries of a node, i.e. if the node can be dragged outside it's parent or if it's contained to the parent
or even let Vue Flow extend the area of a node to fit all it's children.
<div class="mt-6">
<iframe src="https://codesandbox.io/embed/compassionate-goldberg-h5dsnq?eslint=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Fcomponents%2FFlow.vue&theme=dark"
class="hidden dark:block bg-black h-full w-full min-h-[75vh]"
title="Vue Flow: Nested Nodes Example"
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
></iframe>
<iframe src="https://codesandbox.io/embed/compassionate-goldberg-h5dsnq?eslint=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Fcomponents%2FFlow.vue&theme=light"
class="block dark:hidden h-full w-full min-h-[75vh]"
title="Vue Flow: Nested Nodes Example"
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
></iframe>
</div>