📝 Document BrowserView.fromWebContents()
This commit is contained in:
parent
69e461083a
commit
6298748d0b
1 changed files with 7 additions and 0 deletions
|
@ -44,6 +44,13 @@ view.webContents.loadURL('https://electronjs.org')
|
||||||
|
|
||||||
Returns `BrowserView[]` - An array of all opened BrowserViews.
|
Returns `BrowserView[]` - An array of all opened BrowserViews.
|
||||||
|
|
||||||
|
#### `BrowserView.fromWebContents(webContents)`
|
||||||
|
|
||||||
|
* `webContents` [WebContents](web-contents.md)
|
||||||
|
|
||||||
|
Returns `BrowserView | null` - The BrowserView that owns the given `webContents`
|
||||||
|
or `null` if the contents are not owned by a BrowserView.
|
||||||
|
|
||||||
#### `BrowserView.fromId(id)`
|
#### `BrowserView.fromId(id)`
|
||||||
|
|
||||||
* `id` Integer
|
* `id` Integer
|
||||||
|
|
Loading…
Reference in a new issue