Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Engelle > setWarningText
Block.setAlertText() yöntemi
Bu bloğun uyarı metnini ayarlayın.
İmza:
setWarningText(_text: string | null, _opt_id?: string): void;
Parametreler
Parametre |
Tür |
Açıklama |
_metin |
dize | boş |
Metin veya silmek için null. |
_opt_id |
dize |
(İsteğe bağlı) Birden fazla uyarıyı sürdürebilmek için uyarı metnine ilişkin isteğe bağlı bir kimlik. |
Şunu döndürür:
geçersiz
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.setWarningText()` method sets a block's warning text. It accepts two parameters: `_text`, which is the warning text (or `null` to delete it), and an optional `_opt_id` for managing multiple warnings. The method returns void. Its primary action is to either set or remove a specific warning message associated with a block, allowing for potentially multiple distinct warning texts.\n"]]