blockly > FieldImage > setAlt
Metodo FieldImage.setAlt()
Imposta il testo alternativo di questa immagine.
Firma:
setAlt(alt: string | null): void;
Parametri
Parametro |
Tipo |
Descrizione |
alt |
stringa | null |
Nuovo testo alternativo. |
Resi:
null
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-08-22 UTC.
[null,null,["Ultimo aggiornamento 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."]]],[]]