blockly > حظر > getInheritedDisabled
طريقة Block.getInheritedDisabled()
تعرَّف على ما إذا كان الحظر محظورًا بسبب الوالدَين. ولا يتم أخذ الموقع غير المفعَّل الخاص بالحظر في الاعتبار.
Signature:
getInheritedDisabled(): boolean;
المرتجعات:
منطقي
True إذا تم إيقافها.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]