ui.Textbox.setValue
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตั้งค่าของกล่องข้อความ
แสดงผลกล่องข้อความนี้
การใช้งาน | การคืนสินค้า |
---|
Textbox.setValue(value, trigger) | ui.Textbox |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.textbox | ui.Textbox | อินสแตนซ์ ui.Textbox |
value | สตริง | ค่าของกล่องข้อความ |
trigger | บูลีน ไม่บังคับ | ว่าจะเรียกใช้การเรียกกลับ onChange เมื่อพร็อพเพอร์ตี้ value เปลี่ยนแปลงหรือไม่ ค่าเริ่มต้นคือ True |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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. |"]]