]> khamidou — GitHub mirrors - electron.git/commitdiff
Add BrowserWindow.setMenu(menu)
authorBernhard Millauer <SeriousM@users.noreply.github.com>
Wed, 14 May 2014 16:19:30 +0000 (18:19 +0200)
committerBernhard Millauer <SeriousM@users.noreply.github.com>
Wed, 14 May 2014 16:19:30 +0000 (18:19 +0200)
docs/api/browser-window.md

index efc501624ebab7a2caed65b40383f32fa71f7f1e..2ddbaf5ef9cdf861c7dbef899445b3b0b1e99018 100644 (file)
@@ -355,6 +355,10 @@ Same with `webContents.loadUrl(url)`.
 
 ### BrowserWindow.restart()
 
+### BrowserWindow.setMenu(menu)
+
+Sets the `menu` as the window top menu.
+
 ## Class: WebContents
 
 A `WebContents` is responsible for rendering and controlling a web page.