Check if element or any of it's ancestors was kept to be visible.
If element is not kept, you can destroy or reuse it immediately.
It also allows el
equals to controller element.
Element to check.
Make sure elements and all their ancestors can't trigger mouse leave callback and becomes invisible. Normally used for contextmenu to keep parent popup visible.
Array of elements to keep.
Call callback
after mouse leaves all of the elements for ms
milliseconds.
It's very usefull to handle mouse hover event in menu & submenu.
Single element or element array to capture leaves at.
The callback to call after mouse leaves all the elements.
Leave control options.
Call callback
after mouse leaves all of the elements for ms
milliseconds, only trigger callback
for once.
It's very usefull to handle mouse event in menu & submenu.
els Single element or element array to capture leaves at.
The callback to call after mouse leaves all the elements.
Leave control options.
Generated using TypeDoc
It's common that popup2 triggered from an existing popup1, later when mouse moved to popup2, popup1 should disappear because mouse leaves. This is not correct, so we implemented a mouse popup stack and keep parent visible when child still having mouse inside.
Caution: never forget to unregister mouse leave binding before elements disconnected.