Skip to content

ElectronApp.on('new-window-for-tab') method

ElectronApp › on(‘new-window-for-tab’)

Unofficial

Registers a listener for the new-window-for-tab event.

Emitted when the user clicks the native macOS new tab button. macOS only.

Signature:

on(event: "new-window-for-tab", listener: (event: ElectronEvent) => void): this

Parameters:

ParameterTypeDescription
event"new-window-for-tab"The event name.
listener(event: ElectronEvent) => voidThe event handler.

Returns: thisThis ElectronApp instance.