examples: add confirm delete example (#1466)

* examples: add confirm delete example

* docs: add confirm delete example
This commit is contained in:
Braks
2024-06-09 13:04:20 +02:00
committed by braks
parent 67da354917
commit 257c7aa704
12 changed files with 339 additions and 1 deletions
+1
View File
@@ -208,6 +208,7 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
{ text: 'Save & Restore', link: '/examples/save' },
{ text: 'Math Operation Flow', link: '/examples/math' },
{ text: 'Screenshot', link: '/examples/screenshot' },
{ text: 'Confirm Delete', link: '/examples/confirm' },
{ text: 'Node Visibility', link: '/examples/hidden' },
{ text: 'Node Intersections', link: '/examples/intersection' },
{ text: 'Multiple Flows', link: '/examples/multi' },
+9
View File
@@ -0,0 +1,9 @@
# Confirm Delete
Sometimes you want to confirm a delete action before it happens. Here's how you can do that with a simple dialog.
This example also demonstrates how to take-over the application of changes to the graph. This is useful when you want to confirm changes before they are applied.
<div class="mt-6">
<Repl example="confirmDelete"></Repl>
</div>