v11 - Set whether the block is manually enabled or disabled. The user can toggle whether a block is disabled from a context menu option. 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. This method is deprecated and setDisabledReason should be used instead.
[null,null,["Last updated 2024-09-18 UTC."],[[["`BlockSvg.setEnabled()` is an obsolete method used to manually enable or disable a block, allowing users to toggle this state via a context menu."],["While users can attempt to manually enable a block using this method, other factors like invalid location can still keep it disabled."],["This method is deprecated in favor of `setDisabledReason` for more nuanced control over block disabling."],["The method accepts a boolean parameter `enabled`, where `true` enables the block and `false` disables it."],["Calling `BlockSvg.setEnabled()` does not return any value."]]],["The `BlockSvg.setEnabled()` method, now obsolete, controlled a block's manual enable/disable state. Users could toggle this via a context menu. The method accepted a boolean parameter, `enabled`, to set the state to true or false. However, a block could be disabled for other reasons, even if manually enabled. The function returned void. It is deprecated, and the `setDisabledReason` method should be used instead.\n"]]