blockly > FieldImage > setAlt
FieldImage.setAlt() yöntemi
Bu resmin alternatif metnini ayarlayın.
İmza:
setAlt(alt: string | null): void;
Parametreler
Parametre |
Tür |
Açıklama |
alt |
dize | boş |
Yeni alternatif metin. |
Ş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: 2024-08-22 UTC.
[null,null,["Son güncelleme tarihi: 2024-08-22 UTC."],[[["The `FieldImage.setAlt()` method updates the alternative text associated with a FieldImage object."],["This method accepts a single parameter: `alt`, which can be a string containing the new alternative text or null to remove existing alt text."],["Calling `setAlt()` does not return any value (void)."],["This function helps improve accessibility by providing descriptive text for screen readers and other assistive technologies."]]],[]]