Skip to main content

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

Surface.setMode() method#

Sets the current mode for the surface.

Signature:

setMode(mode: SurfaceMode, doNotClearSelection?: boolean): void;

Parameters#

ParameterTypeDescription
modeSurfaceMode
doNotClearSelectionbooleanDefaults to false - when true, a mode change will not first cause the selection in the underlying Toolkit to be cleared.

Returns:

void