ElectronApp.on('new-window-for-tab') method
ElectronApp › on(‘new-window-for-tab’)
Unofficial
Registers a listener for thenew-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): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "new-window-for-tab" | The event name. |
| listener | (event: ElectronEvent) => void | The event handler. |
Returns: this — This ElectronApp instance.