@vue-flow/monorepo • Docs
Type Alias: ValidConnectionFunc() ​
ValidConnectionFunc: (
connection
,elements
) =>boolean
A valid connection function can determine if an attempted connection is valid or not, i.e. abort creating a new edge
Parameters ​
• connection: Connection
• elements
• elements.edges: GraphEdge
[]
• elements.nodes: GraphNode
[]
• elements.sourceNode: GraphNode
• elements.targetNode: GraphNode
Returns ​
boolean