Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > Blokir > getInheritedDisabled
Metode Block.getdatasetDisabled()
Mengetahui apakah pemblokiran dinonaktifkan atau tidak karena orang tua. Properti yang dinonaktifkan dari blok itu sendiri tidak dipertimbangkan.
Tanda Tangan:
getInheritedDisabled(): boolean;
Hasil:
boolean
True jika dinonaktifkan.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-21 UTC.
[null,null,["Terakhir diperbarui pada 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"]]