Update menu.md (#16670)

This commit is contained in:
Xinayu 2019-02-02 00:28:28 +08:00 committed by Shelley Vohr
parent bae09643c1
commit 52952f7d51

View file

@ -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 }))