Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > setSelection

JsPlumbToolkit.setSelection() method

Sets obj as the current selection for this instance of the jsPlumb Toolkit.

Signature:

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

Parameters

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

Returns:

void