docs(api-history): new WebContentsView([options])

This commit is contained in:
Piotr Płaczek
2024-07-22 00:34:13 +01:00
parent b918611d8a
commit 0a11efcf57

View File

@@ -34,6 +34,17 @@ Process: [Main](../glossary.md#main-process)
### `new WebContentsView([options])`
<!--
```YAML history
added:
- pr-url: https://github.com/electron/electron/pull/35658
changes:
- pr-url: https://github.com/electron/electron/pull/42086
description: Extended `WebContentsView` to accept pre-existing `webContents` object.
breaking-changes-header: behavior-changed-browserviewsetautoresize-behavior-on-macos
```
-->
* `options` Object (optional)
* `webPreferences` [WebPreferences](structures/web-preferences.md) (optional) - Settings of web page's features.
* `webContents` [WebContents](web-contents.md) (optional) - If present, the given WebContents will be adopted by the WebContentsView. A WebContents may only be presented in one WebContentsView at a time.