Skip to content

frontend-web-editor


Function: getWorkflowEdge() ​

getWorkflowEdge(parentNodeId, childNodeId, _label): Edge<{ branchId?: string; isGrayed?: boolean; }>

Defined in: utils/treeUtils.ts:166

Create a workflow edge connecting a parent and child node.

Parameters ​

parentNodeId ​

string

ID of the source (parent) node

childNodeId ​

string

ID of the target (child) node

_label ​

string = ""

Optional label for the edge (unused placeholder)

Returns ​

Edge<{ branchId?: string; isGrayed?: boolean; }>

A React Flow Edge configured as a workflow edge