Skip to content

ElectronTray.on('mouse-leave') method

ElectronTray › on(‘mouse-leave’)

Unofficial

Registers a listener that is invoked when the mouse exits the tray icon. darwin only.

Signature:

on(event: "mouse-leave", listener: (event: ElectronKeyboardEvent, position: ElectronPoint) => void): this

Parameters:

ParameterTypeDescription
event"mouse-leave"The event name.
listener(event: ElectronKeyboardEvent, position: ElectronPoint) => voidThe event handler receiving the event and the position of the event.

Returns: thisThis tray instance.