Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > addToSelection

JsPlumbToolkit.addToSelection() method

Appends obj to the current selection. If there is no current selection, obj becomes it.

Signature:

addToSelection(obj: string | Base | Path | Array<Base> | Array<string>): void;

Parameters

ParameterTypeDescription
objstring | Base | Path | Array<Base> | Array<string>Object to select. May be a Node/Group/Port/Edge or an array of any of these, or a Vertex id, or a Path.

Returns:

void