blockly > BlockSvg > setMovable
Methode BlockSvg.setMovable()
Legen Sie fest, ob dieser Block beweglich ist oder nicht.
Unterschrift:
setMovable(movable: boolean): void;
Parameter
Parameter |
Typ |
Beschreibung |
beweglich |
boolean |
True, wenn beweglich. |
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-09-11 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-09-11 (UTC)."],[[["The `setMovable` method determines if a BlockSvg object can be moved on the workspace."],["It accepts a single boolean parameter, `movable`, indicating whether the block should be movable (true) or not (false)."],["Calling this method with the appropriate argument updates the block's movability status."]]],["The `setMovable()` method, part of the `BlockSvg` class, determines if a block can be moved. It accepts a single boolean parameter, `movable`. If `movable` is set to `true`, the block becomes movable; otherwise, it is not. The method has no return value, indicated by `void`. The type of `movable` parameter should be a boolean value.\n"]]