Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > BlockSvg > setMovable
Método BlockSvg.setMovable()
Establece si este bloque puede moverse o no.
Signature:
setMovable(movable: boolean): void;
Parámetros
Parámetro |
Tipo |
Descripción |
móvil |
boolean |
Verdadero si es móvil. |
Muestra:
void
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-09-11 (UTC)
[null,null,["Última actualización: 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"]]