SubWindow
SubWindow
classThis class is a wrapper around the Electron’s BrowserWindow
API to create windows within the application.
Creates a new sub-window.
Parameters
Loads the given URL (delegates to BrowserWindow#load).
Parameters
url
String The URL to load.Returns null
Delegates to BrowserWindow#show.
Returns null
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
Delegates to BrowserWindow#close.
Parameters
avoid_refresh
[Boolean] Whether to avoid the
refresh or not closing.Returns null
Short-hand to check whether the window is destroyed or not. This automatically returns true if the window is null.
Returns Boolean
Returns the window’s webContents.
Returns WebContents