Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > setTarget

JsPlumbToolkit.setTarget() method#

Sets the target for the given edge to be the given vertex.

Signature:

setTarget(edge: Edge, o: string | Vertex, doNotFireEvent?: boolean): any;

Parameters#

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

Returns:

any