Home > @jsplumbtoolkit/core > JsPlumbToolkit > addEdge
JsPlumbToolkit.addEdge() method
Adds an Edge to the Graph.
Signature:
addEdge(params: AddEdgeOptions & {
addedByMouse?: boolean;
}, source?: ToolkitRenderer<any>, doNotFireEvent?: boolean): Edge;
Parameters
| Parameter | Type | Description |
|---|---|---|
| params | AddEdgeOptions & { addedByMouse?: boolean; } | Options for the new edge |
| source | ToolkitRenderer<any> | The renderer that was the source of the action. Optional, used internally. |
| doNotFireEvent | boolean | Optional. Won't fire an event if this is true. For internal use only. |
Returns:
The Edge that was added.