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:

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

Returns: thisThis tray instance.