Skip to content

ElectronTray.on('drag-leave') method

ElectronTray › on(‘drag-leave’)

Unofficial

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

Signature:

on(event: "drag-leave", listener: () => void): this

Parameters:

Parameter Type Description
event "drag-leave" The event name.
listener () => void The event handler.

Returns: thisThis tray instance.