blockly > blockRendering > PathObject > updateMovable
blockRendering.PathObject.updateMovable()-Methode
Fügen Sie Stile hinzu oder entfernen Sie sie, um zu zeigen, dass ein Block beweglich ist.
Unterschrift:
updateMovable(enable: boolean): void;
Parameter
Parameter |
Typ |
Beschreibung |
aktivieren |
boolean |
"True", wenn der Block beweglich ist, andernfalls "False". |
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 `updateMovable` method is part of the `blockRendering.PathObject` class in Blockly and manages the visual cues indicating a block's movability."],["It takes a boolean argument, `enable`, where `true` styles the block as movable and `false` removes the movable styling."],["This method does not return any value (`void`) and solely focuses on updating the block's appearance related to its movable state."]]],[]]