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

Parameter Type Description
disabledReason string The identifier of the reason why the block was or was not disabled.

Returns:

void