blockly > Field > setEnabled

Field.setEnabled() method

Set whether this field's value can be changed using the editor when the source block is editable.

Signature:

setEnabled(enabled: boolean): void;

Parameters

Parameter Type Description
enabled boolean True if enabled.

Returns:

void