blockly > BlocklyOptions > readOnly
BlocklyOptions.readOnly property
Signature:
readOnly?: boolean;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["This property determines if the Blockly workspace is read-only, preventing user interaction and modifications."],["When set to `true`, users cannot drag blocks, create connections, or edit block content; the workspace becomes purely for observation."],["By default, `readOnly` is set to `false`, enabling the standard interactive Blockly workspace experience where users are free to manipulate blocks."]]],[]]