ui.Chart.unlisten
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ลบการโทรกลับ
การใช้งาน | การคืนสินค้า |
---|
Chart.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\u003eChart.unlisten()\u003c/code\u003e function removes registered callbacks, allowing you to control event handling in your chart.\u003c/p\u003e\n"],["\u003cp\u003eYou can target specific callbacks for removal using their unique ID or remove all callbacks associated with a specific event type.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003eChart.unlisten()\u003c/code\u003e without any arguments will remove all registered callbacks from the chart.\u003c/p\u003e\n"]]],[],null,["# ui.Chart.unlisten\n\n\u003cbr /\u003e\n\nDeletes callbacks.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------|---------|\n| Chart.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. |"]]