blockly > BlockSvg > setMovable
BlockSvg.setMovable() yöntemi
Bu blokun taşınabilir olup olmadığını ayarlayın.
İmza:
setMovable(movable: boolean): void;
Parametreler
Parametre |
Tür |
Açıklama |
taşınabilir |
boolean |
Taşınabilirse doğru değerini döndürür. |
Şunu döndürür:
geçersiz
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-11 UTC.
[null,null,["Son güncelleme tarihi: 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"]]