fix some class headings

This commit is contained in:
Zeke Sikelianos 2016-11-14 16:24:48 -08:00
parent c9739abf7f
commit 5979dab13c
3 changed files with 5 additions and 12 deletions

View file

@ -1,4 +1,4 @@
# MenuItem ## Class: MenuItem
> Add items to native application menus and context menus. > Add items to native application menus and context menus.
@ -6,10 +6,6 @@ Process: [Main](../tutorial/quick-start.md#main-process)
See [`Menu`](menu.md) for examples. See [`Menu`](menu.md) for examples.
## Class: MenuItem
Create a new `MenuItem` with the following method:
### `new MenuItem(options)` ### `new MenuItem(options)`
* `options` Object * `options` Object

View file

@ -1,4 +1,4 @@
# Menu ## Class: Menu
> Create native application menus and context menus. > Create native application menus and context menus.
@ -217,8 +217,6 @@ window.addEventListener('contextmenu', (e) => {
</script> </script>
``` ```
## Class: Menu
### `new Menu()` ### `new Menu()`
Creates a new menu. Creates a new menu.

View file

@ -1,9 +1,11 @@
# Tray ## Class: Tray
> Add icons and context menus to the system's notification area. > Add icons and context menus to the system's notification area.
Process: [Main](../tutorial/quick-start.md#main-process) Process: [Main](../tutorial/quick-start.md#main-process)
`Tray` is an [EventEmitter][event-emitter].
```javascript ```javascript
const {app, Menu, Tray} = require('electron') const {app, Menu, Tray} = require('electron')
@ -55,9 +57,6 @@ app.on('ready', () => {
If you want to keep exact same behaviors on all platforms, you should not If you want to keep exact same behaviors on all platforms, you should not
rely on the `click` event and always attach a context menu to the tray icon. rely on the `click` event and always attach a context menu to the tray icon.
## Class: Tray
`Tray` is an [EventEmitter][event-emitter].
### `new Tray(image)` ### `new Tray(image)`