Skip to content

ElectronTray.on('drag-end') method

ElectronTray › on(‘drag-end’)

Unofficial

Registers a listener that is invoked when a drag operation ends on the tray or ends at another location. darwin only.

Signature:

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

Parameters:

ParameterTypeDescription
event"drag-end"The event name.
listener() => voidThe event handler.

Returns: thisThis tray instance.