ui.Label.setImageUrl
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Legt das Label auf ein Bild fest, das anstelle des Werttexts gerendert wird.
Gibt dieses Label zurück.
Nutzung | Ausgabe |
---|
Label.setImageUrl(imageUrl) | ui.Label |
Argument | Typ | Details |
---|
So gehts: ui.label | ui.Label | Die ui.Label-Instanz. |
imageUrl | String | Die URL des Bildes. |
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: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eThe \u003ccode\u003esetImageUrl\u003c/code\u003e method allows you to display an image instead of text within a UI label.\u003c/p\u003e\n"],["\u003cp\u003eThis method accepts an image URL as an argument and applies it to the specified UI label, returning the modified label instance for further use.\u003c/p\u003e\n"]]],[],null,["# ui.Label.setImageUrl\n\n\u003cbr /\u003e\n\nSets the label to an image, which will render instead of the value text.\n\n\u003cbr /\u003e\n\nReturns this label.\n\n| Usage | Returns |\n|-------------------------------|----------|\n| Label.setImageUrl`(imageUrl)` | ui.Label |\n\n| Argument | Type | Details |\n|------------------|----------|------------------------|\n| this: `ui.label` | ui.Label | The ui.Label instance. |\n| `imageUrl` | String | The url of the image. |"]]