Skip to main content

Home > @jsplumbtoolkit/core > Graph > setTarget

Graph.setTarget() method

Sets the target Group/Node/Port for some Edge.

Signature:

setTarget(edge: Edge, o: string | Vertex): {
old?: Vertex;
edge?: Edge;
new?: Vertex;
success: boolean;
};

Parameters

ParameterTypeDescription
edgeEdgeThe Edge to change the target for
ostring | Vertexgroup/Node/Port/id for new Edge target

Returns:

{ old?: Vertex; edge?: Edge; new?: Vertex; success: boolean; }