blockly > FieldImage > setAlt
Methode "FieldImage.setAlt()"
Legen Sie den Alt-Text für dieses Bild fest.
Unterschrift:
setAlt(alt: string | null): void;
Parameter
Parameter |
Typ |
Beschreibung |
alt |
String | null |
Neuer Alt-Text. |
Gibt zurück:
voidm
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-22 (UTC).
[null,null,["Zuletzt aktualisiert: 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."]]],[]]