blockly > Block > hasDisabledReason

Block.hasDisabledReason() method

Get whether the block is currently disabled for the provided reason.

Signature:

hasDisabledReason(reason: string): boolean;

Parameters

Parameter Type Description
reason string A language-neutral identifier for a reason why the block could be disabled.

Returns:

boolean

Whether the block is disabled for the provided reason.