mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
doc: clarify menu item properties not available top-level (#15458)
This commit is contained in:
committed by
Charles Kerr
parent
c93973ab7a
commit
2bd94293e0
@@ -108,6 +108,8 @@ When specifying a `role` on macOS, `label` and `accelerator` are the only
|
||||
options that will affect the menu item. All other options will be ignored.
|
||||
Lowercase `role`, e.g. `toggledevtools`, is still supported.
|
||||
|
||||
**Nota Bene:** The `enabled` and `visibility` properties are not available for top-level menu items in the tray on MacOS.
|
||||
|
||||
### Instance Properties
|
||||
|
||||
The following properties are available on instances of `MenuItem`:
|
||||
|
||||
Reference in New Issue
Block a user