blockly > blockRendering > PathObject > updateMovable
blockRendering.PathObject.updateMovable() method
Add or remove styling showing that a block is movable.
Signature:
updateMovable(enable: boolean): void;
Parameters
Parameter |
Type |
Description |
enable |
boolean |
True if the block is movable, false otherwise. |
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 `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."]]],[]]