blockly > Blockieren > getInheritedDisabled
Methode Block.getInheritedDisabled()
Rufen Sie ab, ob die Blockierung aufgrund von Eltern deaktiviert wurde oder nicht. Die eigene deaktivierte Property des Blocks wird nicht berücksichtigt.
Unterschrift:
getInheritedDisabled(): boolean;
Gibt zurück:
boolean
„True“, wenn deaktiviert.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-21 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]