blockly > Block > isEnabled

Block.isEnabled() method

Get whether this block is enabled or not. A block is considered enabled if there aren't any reasons why it would be disabled. A block may still be disabled for other reasons even if the user attempts to manually enable it, such as when the block is in an invalid location.

Signature:

isEnabled(): boolean;

Returns:

boolean

True if enabled.