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
Parameter | Type | Description |
---|---|---|
obj | string | Base | Array<Base> | Path | Object 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