blockly > blockRendering > PathObject > updateDisabled_
Metodo blockRendering.PathObject.updateDisabled_()
Aggiorna l'aspetto del blocco per riflettere lo stato disattivato.
Firma:
protected updateDisabled_(disabled: boolean): void;
Parametri
Parametro |
Tipo |
Descrizione |
disattivato |
booleano |
True se disabilitato. |
Resi:
null
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-08-21 UTC.
[null,null,["Ultimo aggiornamento 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."]]],["The `updateDisabled_()` method, part of the `PathObject` class within the `blockRendering` namespace, modifies a block's visual appearance to indicate a disabled state. It accepts a single boolean parameter, `disabled`. If `disabled` is true, the method visually updates the block to reflect that it is disabled. It returns nothing.\n"]]