Update menu.md (#16670)
This commit is contained in:
parent
bae09643c1
commit
52952f7d51
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ const { remote } = require('electron')
|
|||
const { Menu, MenuItem } = remote
|
||||
|
||||
const menu = new Menu()
|
||||
menu.append(new MenuItem({ label: 'MenuItem1', click() { console.log('item 1 clicked') } })))
|
||||
menu.append(new MenuItem({ label: 'MenuItem1', click() { console.log('item 1 clicked') } }))
|
||||
menu.append(new MenuItem({ type: 'separator' }))
|
||||
menu.append(new MenuItem({ label: 'MenuItem2', type: 'checkbox', checked: true }))
|
||||
|
||||
|
|
Loading…
Reference in a new issue