ui.Button.setLabel
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הגדרת התווית של הכפתור.
מחזיר את הכפתור הזה.
שימוש | החזרות |
---|
Button.setLabel(label) | ui.Button |
ארגומנט | סוג | פרטים |
---|
זה: ui.button | ui.Button | המופע ui.Button. |
label | מחרוזת | התווית של הכפתור. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003e\u003ccode\u003esetLabel()\u003c/code\u003e lets you customize the text displayed on a button.\u003c/p\u003e\n"],["\u003cp\u003eThis method updates the button's label and returns the \u003ccode\u003eui.Button\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.Button.setLabel\n\n\u003cbr /\u003e\n\nSets the button's label.\n\n\u003cbr /\u003e\n\nReturns this button.\n\n| Usage | Returns |\n|--------------------------|-----------|\n| Button.setLabel`(label)` | ui.Button |\n\n| Argument | Type | Details |\n|-------------------|-----------|-------------------------|\n| this: `ui.button` | ui.Button | The ui.Button instance. |\n| `label` | String | The button's label. |"]]