en | fr

The SubWindow class


This class is a wrapper around the Electron’s BrowserWindow API to create windows within the application.


constructor

Creates a new sub-window.

Parameters


load

Loads the given URL (delegates to BrowserWindow#load).

Parameters

Returns null


show

Delegates to BrowserWindow#show.

Returns null


on

Registers a specific event handler. Simply delegates to the window’s webcontents’ on method.

"redirect" can be passed as a short-hand for the "did-get-redirect-request" event.

Parameters

Returns null


close

Delegates to BrowserWindow#close.

Parameters

Returns null


isDestroyed

Short-hand to check whether the window is destroyed or not. This automatically returns true if the window is null.

Returns Boolean


webContents

Returns the window’s webContents.

Returns WebContents