Skip to main content

Home > blockly > Events > BlockChange > setDisabledReason

Events.BlockChange.setDisabledReason() method

Set the language-neutral identifier for the reason why the block was or was not disabled. This is only valid for events where element is 'disabled'. Defaults to 'MANUALLY_DISABLED'.

Signature:

setDisabledReason(disabledReason: string): void;

Parameters

ParameterTypeDescription
disabledReasonstringThe identifier of the reason why the block was or was not disabled.

Returns:

void