Docs update

This commit is contained in:
Samuel Attard 2016-11-23 11:51:44 +11:00
parent cd8b7f5219
commit 6a8ee19bf0
No known key found for this signature in database
GPG key ID: 273DC1869D8F13EF
2 changed files with 5 additions and 1 deletions

View file

@ -27,7 +27,7 @@ See [`Menu`](menu.md) for examples.
* `visible` Boolean - (optional) If false, the menu item will be entirely hidden. * `visible` Boolean - (optional) If false, the menu item will be entirely hidden.
* `checked` Boolean - (optional) Should only be specified for `checkbox` or `radio` type * `checked` Boolean - (optional) Should only be specified for `checkbox` or `radio` type
menu items. menu items.
* `submenu` MenuItemConstructorOptions[] - (optional) Should be specified for `submenu` type menu items. If * `submenu` (MenuItemConstructorOptions[] | Menu) - (optional) Should be specified for `submenu` type menu items. If
`submenu` is specified, the `type: 'submenu'` can be omitted. If the value `submenu` is specified, the `type: 'submenu'` can be omitted. If the value
is not a `Menu` then it will be automatically converted to one using is not a `Menu` then it will be automatically converted to one using
`Menu.buildFromTemplate`. `Menu.buildFromTemplate`.

View file

@ -481,6 +481,10 @@ win.webContents.on('paint', (event, dirty, image) => {
win.loadURL('http://github.com') win.loadURL('http://github.com')
``` ```
#### Event: 'devtools-reload-page'
Emitted when the devtools window instructs the webContents to reload
### Instance Methods ### Instance Methods
#### `contents.loadURL(url[, options])` #### `contents.loadURL(url[, options])`