Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Uzantılar > başvurun
Extensions.apply() işlevi
Bir uzantıya bir uzantı yöntemi uygular. Bu, yalnızca blok oluşturma sırasında çağrılmalıdır.
İmza:
export declare function apply(name: string, block: Block, isMutator: boolean): void;
Parametreler
Parametre |
Tür |
Açıklama |
ad |
dize |
Uzantının adı. |
engelle |
Engelle |
Adlandırılmış uzantının uygulanacağı blok. |
isMutator |
boolean |
Bu uzantı bir mutatörü tanımlıyorsa doğru değerini döndürür. |
Şunu döndürür:
geçersiz
İstisnalar
Uzantı bulunmazsa {Hata}.
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 `Extensions.apply()` function applies a named extension to a specified block during its construction. It takes three parameters: the extension's name, the target block object, and a boolean indicating if the extension is a mutator. The function's purpose is to modify a block with a designated extension. It returns nothing and throws an error if the extension cannot be found.\n"]]