Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > toggleSelection

JsPlumbToolkit.toggleSelection() method#

Toggles whether or not the given obj forms part of the current selection.

Signature:

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

Parameters#

ParameterTypeDescription
objstring | Base | Path | Array<Base>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