mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add BrowserWindow.setMenu(menu)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user