ui.Label.setImageUrl
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מגדירה את התווית לתמונה, שתוצג במקום הטקסט של הערך.
הפונקציה מחזירה את התווית הזו.
שימוש | החזרות |
---|
Label.setImageUrl(imageUrl) | ui.Label |
ארגומנט | סוג | פרטים |
---|
זה: ui.label | ui.Label | מופע ui.Label. |
imageUrl | מחרוזת | כתובת ה-URL של התמונה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 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. |"]]