ui.Textbox.unlisten
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ลบการโทรกลับ
การใช้งาน | การคืนสินค้า |
---|
Textbox.unlisten(idOrType) | |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.widget | ui.Widget | อินสแตนซ์ ui.Widget |
idOrType | สตริง ไม่บังคับ | รหัสที่ฟังก์ชัน onEventType() แสดงผลระหว่างการลงทะเบียน Callback, ประเภทเหตุการณ์ หรือไม่มีอะไรเลย หากมีการส่งรหัส ระบบจะลบคอลแบ็กที่เกี่ยวข้อง หากส่งประเภทเหตุการณ์ ระบบจะลบการเรียกกลับทั้งหมดสำหรับประเภทนั้น หากไม่มีการส่งอะไร ระบบจะลบการเรียกกลับทั้งหมด |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThe \u003ccode\u003eunlisten()\u003c/code\u003e method removes registered callbacks from a Textbox widget.\u003c/p\u003e\n"],["\u003cp\u003eYou can target specific callbacks using their unique ID, remove all callbacks of a specific event type, or remove all callbacks entirely.\u003c/p\u003e\n"],["\u003cp\u003eThe method is called on a ui.Widget instance and accepts an optional \u003ccode\u003eidOrType\u003c/code\u003e argument to specify which callbacks to remove.\u003c/p\u003e\n"]]],[],null,["# ui.Textbox.unlisten\n\n\u003cbr /\u003e\n\nDeletes callbacks.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------|---------|\n| Textbox.unlisten`(`*idOrType*`)` | |\n\n| Argument | Type | Details |\n|-------------------|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `ui.widget` | ui.Widget | The ui.Widget instance. |\n| `idOrType` | String, optional | Either an ID returned by an onEventType() function during callback registration, an event type, or nothing. If an ID is passed, the corresponding callback is deleted. If an event type is passed, all callbacks for that type are deleted. If nothing is passed, all callbacks are deleted. |"]]