blockly > Blocca > getInheritedDisabled
Metodo Block.getInheritedDisabled()
Scopri se il blocco è stato disattivato o meno a causa dei genitori. La proprietà disattivata del blocco non viene considerata.
Firma:
getInheritedDisabled(): boolean;
Resi:
booleano
True se disabilitato.
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."],[[["This method, `getInheritedDisabled()`, determines if a block is disabled based on the disabled status of its parent blocks."],["It only considers the disabled status inherited from parent blocks, ignoring the block's own `disabled` property."],["The method returns `true` if the block is disabled due to its parent(s), and `false` otherwise."]]],["The `Block.getInheritedDisabled()` method determines if a block is disabled because of its parent blocks. It does not consider the block's own disabled state. The method returns a boolean value: `true` if the block is disabled due to inheritance, and `false` otherwise. It essentially checks the parent's disabled status and reports accordingly.\n"]]