Skip to main content

Home > @jsplumbtoolkit/browser-ui > Selection > setMode

Selection.setMode() method

Sets the selection's current mode, flushing any objects which do not match the given mode. If you switch to SelectionModes.isolated the entire selection is cleared, because it does not know what single supported type should be until something is subsequently added.

Signature:

setMode(mode: SelectionMode): void;

Parameters

ParameterTypeDescription
modeSelectionMode

Returns:

void