
- Electron api document how to#
- Electron api document code#
- Electron api document mac#
- Electron api document windows#
This module requires Node.js 10.0 or higher to run. app bundle can only be signed when building on a host macOS platform.
Electron api document mac#
* Note for macOS / Mac App Store target bundles: the.
Electron api document windows#
Electron api document code#
Source code with a renamed Electron executable and supporting files into folders ready for distribution.įor creating distributables like installers and Linux packages, consider using either Electron exe, etc.) via JavaScript or the command line.Įlectron Packager is a command line tool and Node.js library that bundles Electron-based application Event: 'will-prevent-unload'Įmitted when a beforeunload event handler is attempting to cancel a page unload.Ĭalling event.Package your Electron app into OS-specific bundles (.


Examples of this occurring are when anchor linksĪre clicked or when the DOM hashchange event is triggered. When in-page navigation happens, the page URL changes but does not cause Event: 'did-navigate-in-page'Įmitted when an in-page navigation happened in any frame.

It is also not emitted for in-page navigations, such as clicking anchor links This event will not emit when the navigation is started programmatically withĪPIs like webContents.loadURL and webContents.back. The window.location object is changed or a user clicks a link in the page. Event: 'will-navigate'Įmitted when a user or the page wants to start navigation.

Electron api document how to#
See window.open() for more details and how to use this in conjunction with tWindowOpenHandler. Not emitted if the creation of the window is canceled from disposition string - Can be default, foreground-tab,īackground-tab, new-window, save-to-disk and other.Įmitted after successful creation of a window via window.open in the renderer.Only defined when the window is being created by a form that set If no post data is to be sent, the value will be null. That will be sent to the new window, along with the appropriate headers postBody PostBody (optional) - The post data.May or may not result in the Referer headerīeing sent, depending on the referrer policy. referrer Referrer - The referrer that will be.Unrecognized options are not filtered out. WebPreferences inherited from the parent, and options given by They are merged in increasing precedence: parsed optionsįrom the features string from window.open(), security-related options BrowserWindowConstructorOptions - The options used to create theīrowserWindow.frameName string - Name given to the created window in the.url string - URL for the created window.
