blockly > Block > getDisabledReasons
Block.getDisabledReasons() method
Get a set of reasons why the block is currently disabled, if any. If the block is enabled, this set will be empty.
Signature:
getDisabledReasons(): ReadonlySet<string>;
Returns:
ReadonlySet<string>
The set of reasons why the block is disabled, if any.