ui.Textbox.setValue
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מגדיר את הערך של תיבת הטקסט.
מחזירה את תיבת הטקסט הזו.
שימוש | החזרות |
---|
Textbox.setValue(value, trigger) | ui.Textbox |
ארגומנט | סוג | פרטים |
---|
זה: ui.textbox | ui.Textbox | המופע ui.Textbox. |
value | מחרוזת | הערך של תיבת הטקסט. |
trigger | בוליאני, אופציונלי | האם להפעיל קריאות חוזרות (callback) של onChange כשמאפיין הערך משתנה. ברירת המחדל היא True. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון 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\u003esetValue\u003c/code\u003e method allows you to programmatically set the value of a textbox element within your user interface.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts the new value as a string and an optional boolean to control triggering of onChange event callbacks.\u003c/p\u003e\n"],["\u003cp\u003eAfter setting the value, the method returns the ui.Textbox instance itself for chaining with other methods.\u003c/p\u003e\n"]]],[],null,["# ui.Textbox.setValue\n\n\u003cbr /\u003e\n\nSets the value of the textbox.\n\n\u003cbr /\u003e\n\nReturns this textbox.\n\n| Usage | Returns |\n|----------------------------------------|------------|\n| Textbox.setValue`(value, `*trigger*`)` | ui.Textbox |\n\n| Argument | Type | Details |\n|--------------------|-------------------|------------------------------------------------------------------------------------------|\n| this: `ui.textbox` | ui.Textbox | The ui.Textbox instance. |\n| `value` | String | The value of the textbox. |\n| `trigger` | Boolean, optional | Whether to trigger onChange callbacks when the value property changes. Defaults to true. |"]]