You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ my_menu = [
15
15
text:String, // Text displayed on the button, if any
16
16
html:String, // Raw HTML to display, if any
17
17
title:String, // Text to display in the button tooltip, if any
18
-
icon:String, // Name of Material icon to display, if any (see https://material.io/resources/icons/)
18
+
icon:String||Object, // Name of Material icon to display, if any (see https://material.io/resources/icons/), or an icon component (e.g. https://github.com/antfu/unplugin-icons)
19
19
emoji:String, // Name of Emoji to display, if any (from this list: https://raw.githubusercontent.com/omnidan/node-emoji/master/lib/emoji.json)
20
20
hotkey:String, // Hotkey combination shortcut for the button, if any (use this format: https://github.com/jaywcjlove/hotkeys#supported-keys)
21
21
active:Boolean, // Set to true if the button is toggled
@@ -39,7 +39,7 @@ my_menu = [
39
39
// === item properties ===
40
40
text:String, // Text displayed on the menu item, if any
41
41
html:String, // Raw HTML to display, if any
42
-
icon:String, // Name of Material icon to display, if any (see https://material.io/resources/icons/)
42
+
icon:String||Object, // Name of Material icon to display, if any (see https://material.io/resources/icons/), or an icon component (e.g. https://github.com/antfu/unplugin-icons)
43
43
emoji:String, // Name of Emoji to display, if any (from this list: https://raw.githubusercontent.com/omnidan/node-emoji/master/lib/emoji.json)
44
44
hotkey:String, // Hotkey combination shortcut for the menu, if any (use this format: https://github.com/jaywcjlove/hotkeys#supported-keys)
45
45
disabled:Boolean, // Set to true if the menu is disabled (it will prevent click event)
0 commit comments