blockly > blockRendering > PathObject > updateMovable
Metoda blockRendering.PathObject.updateMovable()
Dodaj lub usuń styl pokazujący, że bryłę można przesunąć.
Podpis:
updateMovable(enable: boolean): void;
Parametry
Parametr |
Typ |
Opis |
włącz |
wartość logiczna |
Wartość „prawda”, jeśli blok można przenieść. W przeciwnym razie ma wartość „false”. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-21 UTC.
[null,null,["Ostatnia aktualizacja: 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."]]],[]]