examples: add confirm delete example (#1466)
* examples: add confirm delete example * docs: add confirm delete example
This commit is contained in:
@@ -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' },
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user