Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Engelle > getChildren
Block.getChildren() yöntemi
Doğrudan bunun içine yerleştirilmiş tüm blokları bulun. Değer ve ifade girişlerinin yanı sıra aşağıdaki ifadeleri de içerir. Bir çıkış sekmesindeki veya önceki herhangi bir ifadedeki bağlantıları hariç tutar. Bloklar, isteğe bağlı olarak konuma göre sıralanır; yukarıdan aşağıya iner.
İmza:
getChildren(ordered: boolean): Block[];
Parametreler
Parametre |
Tür |
Açıklama |
sipariş edildi |
boolean |
Doğruysa listeyi sıralayın. |
Şunu döndürür:
Engelle[]
Blok dizisi.
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: 2025-07-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[],["The `Block.getChildren()` method retrieves an array of blocks directly nested within a given block. It includes blocks connected to value and statement inputs, and any following statements, but excludes blocks connected to output tabs or preceding statements. The method accepts a boolean parameter, `ordered`, to determine if the returned list of blocks should be sorted by position from top to bottom. The method returns an array of `Block` objects.\n"]]