Andrey
204e3808d2
docs: add parentheses + change lower case to upper case in some places ( #18368 )
...
* fix: add parentheses
Add parentheses to the end `app.showAboutPanel`, because this is method.
* fix: change 'Promise<string>' to 'Promise<String>'
Change `Promise<string>` to `Promise<String>`, because this is class name.
* docs: change lower case to upper case
Change lower case in word `menu` to upper case - `Menu`, because it's method.
2019-05-21 15:41:41 +09:00
Shelley Vohr
6d96f30ed3
refactor: make shell.OpenExternal async ( #17135 )
2019-05-03 13:53:45 -07:00
Shelley Vohr
8d83518f9a
refactor: make name a prop on app ( #17701 )
...
Update app.name to be a property on app.
2019-04-30 13:55:33 -07:00
Aayush Chhabra
6d005ff137
docs: Remove redundant 'Instance Events' Headline ( #16865 )
2019-02-15 08:29:33 -10:00
Shelley Vohr
858781ba83
feat: allow Menu.buildFromTemplate() to accept MenuItems ( #16697 )
...
* feat: allow Menu.buildFromTemplate to accept MenuItems
* add another spec
* fix linter error
* add submenu spec
2019-02-06 10:04:40 -08:00
Xinayu
52952f7d51
Update menu.md ( #16670 )
2019-02-01 08:28:28 -08:00
Milan Burda
23d44e322d
feat: use default-app behavior in packaged apps ( #16310 )
...
Unify the behavior between default app and packaged apps:
- create default application menu unless the app has one
- default window-all-closed handling unless the app handles the event
2019-01-15 21:35:53 +01:00
Shelley Vohr
0881fd6397
feat: split openExternal into sync and async ( #16176 )
...
* feat: split openExternal into sync and async
* v8::Locker => mate::Locker
* fix: enter js env when resolving promise
2019-01-14 20:35:21 -08:00
Milan Burda
eb02a422de
feat: add fileMenu
/ viewMenu
/ appMenu
roles ( #16328 )
2019-01-10 14:32:03 +01:00
Shelley Vohr
9fd98bb27b
refactor: no longer require submenu for services menuitem ( #15656 )
2018-11-10 12:47:55 -05:00
Heilig Benedek
894ae1b3f5
refactor: Improve accessibility of menus ( #15302 )
...
* refactor: improve menubar keyboard accessibility
* fix: create a temporary widget for tray icon context menu
* fix: focus menu bar with Alt when autohide is off
* fix: make menu bar focus work more like the native menus
* fix: only focus menu bar if it's not already focused
* fix: track accelerator registration to avoid duplicates
* docs: add docs for & notation in app menu item names
* fix: only try to activate accelerator if it's registered
* fix: add friend to monitor window focus change
* style: add <memory> include
2018-10-29 13:08:46 -05:00
Samuel Attard
558fff69e7
chore: update to standard 12
2018-09-14 14:57:01 +10:00
Dominic
a7052efaf4
fix: make menu.popup options optional ( #13977 )
...
* add empty object as default param for options
* update docs
* add spec for optional options
* fix: add null check for options
2018-08-08 17:38:52 -05:00
Charles Kerr
4d078fdb03
Remove more words ( #12852 )
...
* remove 'basically' from docs
* remove 'simply' from docs
* remove most uses of 'just' from docs
2018-05-08 00:16:09 -05:00
Shelley Vohr
52e3d5e4f0
remove some beginner-unfriendly terms from docs
2018-05-07 08:46:14 -07:00
Shelley Vohr
9c8952aef0
Add menu item order control ( #12362 )
...
Add four new optional properties to menus in Electron. The four properties are:
'before'
'after'
'beforeGroupContaining'
'afterGroupContaining'
'before/after' - provides a means for a single context menu item to declare its placement relative to another context menu item. These also imply that menu item in question should be placed in the same “group” as the item.
'beforeGroupContaining/afterGroupContaining - provides a means for a single menu item to declare the placement of its containing group, relative to the containing group of the specified item.
2018-05-05 09:37:29 -07:00
Charles Kerr
21de806c80
document menu.popup() option's window argument
2018-02-20 14:30:37 -06:00
Charles Kerr
35e90f742b
fix menu.popup() sample code
2018-02-20 11:18:57 -06:00
Shelley Vohr
ba933ef085
update docs for single param popup
2018-02-20 11:12:39 -05:00
Shelley Vohr
c886803d0f
change doc to show working on all platforms
2018-01-28 18:57:44 -05:00
Shelley Vohr
a9dd4c927d
update menu docs description string
2018-01-28 13:59:53 -05:00
Shelley Vohr
e81265bc7f
add documentation for new menu events
2018-01-27 11:28:42 -05:00
Cheng Zhao
46330ac2a9
Remove the closed event of Menu
...
The callback of Menu.popup does more things, and there is actually no
request for the closed event.
2018-01-01 17:22:07 +09:00
Cheng Zhao
9c6aa9ce90
docs: callback of Menu.popup
2018-01-01 16:42:23 +09:00
Heilig Benedek
bcef6eb3df
document menu closed event and fix styling issue
2017-12-20 15:40:07 +09:00
Toinane
323ea2b27b
fix(docs): fix all missing dots and add some links
2017-11-29 11:38:35 +01:00
Aleksei Kuzmin
9c5acf6233
Remove "async" flag from the menu.popup()
options
...
All menus have become async after the Chromium 61 upgrade.
Fixes #11242 .
2017-11-25 13:31:58 +01:00
Charles Kerr
70643a865b
Merge pull request #11178 from electron/fenced-code-block-lang
...
enforce rules on code blocks style in docs
2017-11-21 13:38:46 +01:00
Charles Kerr
432d050481
Merge pull request #11167 from simast/menu-typings-fix
...
Improve setApplicationMenu/getApplicationMenu docs
2017-11-20 13:28:37 -06:00
Vanessa Yuen
435e027dc3
fix linting for fenced codeblocks only (see electron/electronjs.org#868 )
2017-11-20 14:33:25 +08:00
Ronald Eddy
14c6e78147
Update electron.atom.io -> electronjs.org
...
Update electron.atom.io -> electronjs.org to reduce redirects and speed navigation.
2017-11-19 04:01:33 -08:00
Simas Toleikis
c465257d69
Fix docs for menu setApplicationMenu/getApplicationMenu methods [ci skip]
2017-11-19 11:41:22 +02:00
Shelley Vohr
05c50b0a2e
fix docs typo
2017-09-26 21:30:27 -04:00
Shelley Vohr
31bf873c20
add docs update for new api call
2017-09-26 21:14:44 -04:00
Zeke Sikelianos
1811b0cbda
fix heading levels for class docs
2017-07-26 13:02:40 -07:00
Fabian Zeindl
5db02ffaa9
updates to the docs
2017-07-24 10:29:45 +02:00
Kevin Sawicki
fb47dc9e48
🎨
2017-06-05 08:55:42 -07:00
Samuel Attard
af09d85125
Update menu.md
2017-06-03 14:50:10 +10:00
Kevin Wojniak
342a8fd577
Add missing word
2017-05-02 09:05:07 -07:00
Kevin Sawicki
e9880e9c97
Merge pull request #8996 from swashcap/master
...
Add documentation note on dynamic Menu items
2017-04-21 13:44:01 -07:00
Philip Jackson
6169ccd1e2
📝 Document that setApplicationMenu(null) has no effect on macOS
2017-04-04 18:00:20 +12:00
Philip Jackson
1c80102218
📝 Document passing null to Menu.setApplicationMenu
...
[ci skip]
2017-03-31 16:42:03 +13:00
Zeke Sikelianos
d5bc8990fc
link to roles list from Menu doc
2017-03-30 11:08:12 -07:00
Zeke Sikelianos
b24be19fac
tighten up formatting of menu example
2017-03-30 11:07:59 -07:00
Cory Reed
a92f639b64
📝 Add note regarding dynamic addition/removal of menu items.
...
Closes #8928 .
[ci skip]
2017-03-23 11:57:44 -07:00
Zeke Sikelianos
69f0cb26e7
use https for all Electron website URLs
2017-02-28 21:19:55 -08:00
Kevin Sawicki
6c6506e5aa
Document menu.closePopup
2017-02-22 10:30:28 -08:00
Kevin Sawicki
d686cf77e9
Update menu.popup docs to take options object
2017-02-22 10:30:28 -08:00
Kevin Sawicki
fb08f56fc8
Add forcereload menu item role
2017-02-03 09:39:41 -08:00
Zeke Sikelianos
e57cb713b2
link process annotations to glossary
2016-12-21 13:47:40 -08:00