mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
add toolTip property for MenuItem (#19099)
This commit is contained in:
committed by
Cheng Zhao
parent
692df804cf
commit
06d48514c6
@@ -20,6 +20,7 @@ See [`Menu`](menu.md) for examples.
|
||||
`radio`.
|
||||
* `label` String (optional)
|
||||
* `sublabel` String (optional)
|
||||
* `toolTip` String (optional) _macOS_ - Hover text for this menu item.
|
||||
* `accelerator` [Accelerator](accelerator.md) (optional)
|
||||
* `icon` ([NativeImage](native-image.md) | String) (optional)
|
||||
* `enabled` Boolean (optional) - If false, the menu item will be greyed out and
|
||||
@@ -166,6 +167,10 @@ item's icon, if set.
|
||||
|
||||
A `String` indicating the item's sublabel, this property can be dynamically changed.
|
||||
|
||||
#### `menuItem.toolTip` _macOS_
|
||||
|
||||
A `String` indicating the item's hover text.
|
||||
|
||||
#### `menuItem.enabled`
|
||||
|
||||
A `Boolean` indicating whether the item is enabled, this property can be
|
||||
|
||||
Reference in New Issue
Block a user