diff --git a/docs/api/menu-item.md b/docs/api/menu-item.md index ddf8d13c3eca..85e47e6a0dc1 100644 --- a/docs/api/menu-item.md +++ b/docs/api/menu-item.md @@ -17,7 +17,7 @@ * `enabled` Boolean * `visible` Boolean * `checked` Boolean - * `groupId` Boolean - Should be specified for `radio` type menu item + * `groupId` Integer - Should be specified for `radio` type menu item * `submenu` Menu - Should be specified for `submenu` type menu item, when it's specified the `type: 'submenu'` can be omitted for the menu item diff --git a/docs/api/menu.md b/docs/api/menu.md index b14241181d10..abb4262479db 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -14,7 +14,7 @@ var MenuItem = require('menu-item'); var menu = new Menu(); menu.append(new MenuItem({ label: 'MenuItem1', click: function() { console.log('item 1 clicked'); } })); menu.append(new MenuItem({ type: 'separator' })); -menu.append(new MenuItem({ label: 'MenuItem2', type: 'checkbox', clicked: true })); +menu.append(new MenuItem({ label: 'MenuItem2', type: 'checkbox', checked: true })); window.addEventListener('contextmenu', function (e) { e.preventDefault();