#10039 add BrowserView.fromId

This commit is contained in:
Siyuan Liu 2017-07-24 11:32:30 +08:00
parent a43553aa25
commit ae7c1ae741
3 changed files with 20 additions and 1 deletions

View file

@ -38,6 +38,14 @@ view.webContents.loadURL('https://electron.atom.io')
* `options` Object (optional)
* `webPreferences` Object (optional) - See [BrowserWindow](browser-window.md).
### Static Methods
#### `BrowserView.fromId(id)`
* `id` Integer
Returns `BrowserView` - The view with the given `id`.
### Instance Properties
Objects created with `new BrowserView` have the following properties: