blockly > Engelle > getParent
Block.getParent() yöntemi
Bu blok üst düzeydeyse üst bloku veya boş değeri döndürün. Üst blok, önceki bağlantıya bağlı blok (bir ifade bloğu için) veya çıkış bağlantısına bağlı bloktur (bir değer bloğu için).
İmza:
getParent(): this | null;
Şunu döndürür:
bu | boş
Geçerli bloğu içeren blok (varsa).
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-21 UTC.
[null,null,["Son güncelleme tarihi: 2024-08-21 UTC."],[[["The `getParent()` method retrieves the parent block of the current block within a Blockly workspace."],["If the current block is at the top level and has no parent, the method returns `null`."],["Parent blocks are determined by connections: previous connection for statement blocks and output connection for value blocks."]]],[]]