Merge pull request #4292 from be5invis/patch-1

Add link to BrowserWindow::setMenu in docs/api/menu.md
This commit is contained in:
Cheng Zhao 2016-02-01 13:19:59 +08:00
commit 7fdff522d6

View file

@ -296,6 +296,11 @@ no matter what label you set. To change it you have to change your app's name
by modifying your app bundle's `Info.plist` file. See [About Information
Property List Files][AboutInformationPropertyListFiles] for more information.
## Setting Menu for Specific Browser Window (*Linux* *Windows*)
The [`setMenu` method][setMenu] of browser windows can set the menu of certain
browser window.
## Menu Item Position
You can make use of `position` and `id` to control how the item will be placed
@ -371,3 +376,5 @@ Menu:
```
[AboutInformationPropertyListFiles]: https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html
[setMenu]:
https://github.com/atom/electron/blob/master/docs/api/browser-window.md#winsetmenumenu-linux-windows