MCPcopy
hub / github.com/RaspberryPiFoundation/blockly / setEditable

Method setEditable

packages/blockly/core/block.ts:946–951  ·  view source on GitHub ↗

* Set whether this block is editable or not. * * @param editable True if editable.

(editable: boolean)

Source from the content-addressed store, hash-verified

944 * @param editable True if editable.
945 */
946 setEditable(editable: boolean) {
947 this.editable = editable;
948 for (const field of this.getFields()) {
949 field.updateEditable();
950 }
951 }
952
953 /**
954 * Returns if this block has been disposed of / deleted.

Callers 5

loadWorkspaceCommentFunction · 0.45
domToBlockHeadlessFunction · 0.45
icon_test.jsFile · 0.45

Calls 2

getFieldsMethod · 0.95
updateEditableMethod · 0.65

Tested by

no test coverage detected