Docs

connectionValidator

Global custom validator for new connections (node ids only).

CategoryBehavior
Type(source: string, target: string) => boolean

Example

Example
<ngx-workflow-diagram
  [connectionValidator]="(s, t) => s !== t"
/>

Interactive preview

Try the diagram (drag ports to connect):

Diagram canvas
ngx-workflow-diagram