Skip to Content
Vue Flow v2 is here and joins xyflow! Read more here →
ReferenceTypes

OnBeforeDelete

The OnBeforeDelete type is the signature of the function you pass to the onBeforeDelete prop. It receives the nodes and edges about to be deleted and returns (a promise of) false to cancel the deletion, true to allow it, or a filtered set of elements to delete a subset.

Fields

Parameters:
NameTypeDefault
__0{ nodes: NodeType[]; edges: EdgeType[]; }
Returns:
Promise<boolean | { nodes: NodeType[]; edges: EdgeType[]; }>