Skip to main content

blockly > Workspace > setIsReadOnly

Workspace.setIsReadOnly() method

Sets whether or not this workspace is in readonly mode.

Signature:

setIsReadOnly(readOnly: boolean): void;

Parameters

Parameter

Type

Description

readOnly

boolean

True to make the workspace readonly, otherwise false.

Returns:

void