Docs
beforeDelete
Cancellable event before deletion. Call cancel() to prevent removing the selection.
Usage
<ngx-workflow-diagram
(beforeDelete)="onBeforeDelete($event)"
/>
onBeforeDelete(e: { nodes: Node[]; edges: Edge[]; cancel: () => void }) {
if (!confirm('Delete selection?')) e.cancel();
}Interactive example
Diagram canvas
Interact with nodes and edges. Drag port-to-port to fire connect events.
Event log
No events logged yet.