Skip to content

Commit e962bc3

Browse files
trop[bot]nikwen
andauthored
docs: clarify meaning of string value for menu item icon (#48938)
* docs: clarify meaning of string value for menu item icon Co-authored-by: Niklas Wenzel <[email protected]> * fix: format Co-authored-by: Niklas Wenzel <[email protected]> * fix: wording Co-authored-by: Niklas Wenzel <[email protected]> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Niklas Wenzel <[email protected]>
1 parent 895cf00 commit e962bc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/api/menu-item.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ See [`Menu`](menu.md) for examples.
3434
* `sublabel` string (optional) _macOS_ - Available in macOS >= 14.4
3535
* `toolTip` string (optional) _macOS_ - Hover text for this menu item.
3636
* `accelerator` string (optional) - An [Accelerator](../tutorial/keyboard-shortcuts.md#accelerators) string.
37-
* `icon` ([NativeImage](native-image.md) | string) (optional)
37+
* `icon` ([NativeImage](native-image.md) | string) (optional) - Can be a
38+
[NativeImage](native-image.md) or the file path of an icon.
3839
* `enabled` boolean (optional) - If false, the menu item will be greyed out and
3940
unclickable.
4041
* `acceleratorWorksWhenHidden` boolean (optional) _macOS_ - default is `true`, and when `false` will prevent the accelerator from triggering the item if the item is not visible.

0 commit comments

Comments
 (0)