封鎖 >工具提示 >unbindMouseEvents
將工具提示滑鼠事件從 SVG 元素解除繫結。
Signature:
export declare function unbindMouseEvents(element: Element | null): void;
參數
參數 |
類型 |
說明 |
元素 |
元素 |空值 |
與工具提示繫結的 SVG 元素。 |
傳回:
void
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-21 (世界標準時間)。
[null,null,["上次更新時間:2024-08-21 (世界標準時間)。"],[[["`Tooltip.unbindMouseEvents()` removes mouse event listeners associated with tooltips from a given SVG element."],["This function accepts an SVG element (or null) as input and does not return any value."],["Primarily used to detach tooltip interactions, ensuring they no longer trigger on mouse events over the specified element."]]],["The `Tooltip.unbindMouseEvents()` function removes tooltip-related mouse event listeners from a specified SVG element. It takes one parameter, `element`, which represents the SVG element (or null) from which the events should be removed. This function effectively stops tooltips from being triggered by mouse interactions on the designated element. The function returns nothing (`void`) after execution.\n"]]