Skip to content

Commit 7fdff52

Browse files
committed
Merge pull request electron#4292 from be5invis/patch-1
Add link to BrowserWindow::setMenu in docs/api/menu.md
2 parents e161548 + 1d62964 commit 7fdff52

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/api/menu.md

+7
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,11 @@ no matter what label you set. To change it you have to change your app's name
296296
by modifying your app bundle's `Info.plist` file. See [About Information
297297
Property List Files][AboutInformationPropertyListFiles] for more information.
298298

299+
## Setting Menu for Specific Browser Window (*Linux* *Windows*)
300+
301+
The [`setMenu` method][setMenu] of browser windows can set the menu of certain
302+
browser window.
303+
299304
## Menu Item Position
300305

301306
You can make use of `position` and `id` to control how the item will be placed
@@ -371,3 +376,5 @@ Menu:
371376
```
372377

373378
[AboutInformationPropertyListFiles]: https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html
379+
[setMenu]:
380+
https://github.com/atom/electron/blob/master/docs/api/browser-window.md#winsetmenumenu-linux-windows

0 commit comments

Comments
 (0)