Home > @jsplumbtoolkit/core > JsPlumbToolkit > setSource
JsPlumbToolkit.setSource() method
Sets the source for the given edge to be the given vertex.
Signature:
setSource(edge: Edge, o: string | Vertex, doNotFireEvent?: boolean): any;
Parameters
Parameter | Type | Description |
---|---|---|
edge | Edge | Edge to set source for. |
o | string | Vertex | ID of vertex, or vertex. |
doNotFireEvent | boolean |
Returns:
any