Skip to content

ElectronMenu.on('menu-will-close') method

ElectronMenu › on(‘menu-will-close’)

Unofficial

Registers an event listener that is invoked when a popup is closed either manually or with ElectronMenu.closePopup.

Signature:

on(event: "menu-will-close", listener: (event: ElectronEvent) => void): this

Parameters:

ParameterTypeDescription
event"menu-will-close"The event name.
listener(event: ElectronEvent) => voidThe event handler.

Returns: thisThis menu instance.