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): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "drag-leave" | The event name. |
| listener | () => void | The event handler. |
Returns: this — This tray instance.