blockly > blockRendering > PathObject > updateDisabled_
blockRendering.PathObject.updateDisabled_()-Methode
Aktualisiert das Design des Blocks, sodass dieser den Status „Deaktiviert“ widerspiegelt.
Unterschrift:
protected updateDisabled_(disabled: boolean): void;
Parameter
Parameter |
Typ |
Beschreibung |
deaktiviert |
boolean |
„True“, wenn deaktiviert. |
Gibt zurück:
voidm
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-21 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-08-21 (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"]]