blockly > blockRendering > PathObject > updateDisabled_
blockRendering.PathObject.updateDisabled_() method
Updates the look of the block to reflect a disabled state.
Signature:
protected updateDisabled_(disabled: boolean): void;
Parameters
Parameter |
Type |
Description |
disabled |
boolean |
True if disabled. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `updateDisabled_` method is used to visually represent the disabled state of a block within Blockly's rendering system."],["It takes a boolean parameter indicating whether the block should appear disabled (`true`) or enabled (`false`)."],["By calling this method with the appropriate disabled state, developers can ensure that the block's visual appearance accurately reflects its functionality."]]],["The `updateDisabled_()` method, part of the `PathObject` class within the `blockRendering` namespace, modifies a block's visual appearance to indicate a disabled state. It accepts a single boolean parameter, `disabled`. If `disabled` is true, the method visually updates the block to reflect that it is disabled. It returns nothing.\n"]]