Home > @jsplumbtoolkit/browser-ui > Surface > setMode
Surface.setMode() method
Sets the current mode for the surface.
Signature:
setMode(mode: SurfaceMode, doNotClearSelection?: boolean): void;
Parameters
Parameter | Type | Description |
---|---|---|
mode | SurfaceMode | |
doNotClearSelection | boolean | Defaults to false - when true, a mode change will not first cause the selection in the underlying Toolkit to be cleared. |
Returns:
void