Skip to main content

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#

ParameterTypeDescription
edgeEdgeEdge to set source for.
ostring | VertexID of vertex, or vertex.
doNotFireEventboolean

Returns:

any