blockly > blockRendering > PathObject > updateDisabled_
Metoda blockRendering.PathObject.updateDisabled_()
Aktualizuje wygląd bloku, aby odzwierciedlić stan wyłączenia.
Podpis:
protected updateDisabled_(disabled: boolean): void;
Parametry
Parametr |
Typ |
Opis |
wyłączone |
wartość logiczna |
Prawda, jeśli ta opcja jest wyłączona. |
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 `updateDisabled_` method is used to visually represent the disabled state of a block within Blockly's rendering system."],["It takes a boolean parameter indicating whether the block should appear disabled (`true`) or enabled (`false`)."],["By calling this method with the appropriate disabled state, developers can ensure that the block's visual appearance accurately reflects its functionality."]]],[]]