Does Atom's Context Menu support icons?


#1

Bom!

I want to add icon to context menu items. Is it posible?


#2

Try setting an icon attribute on the menu item. Electrons menu-item docs say that’s the way to get an icon on a menu item.


#3

Thanks for reply. I saw this link before, but I can’t understand how to apply Electron API to Atom. There is no MenuItem class in Atom. Maybe You know how to use Electron API from Atom’s package? Have you some examples or docs about it?


#4

As far as I know, the menu items you write in menus/package-menu.cson in your package are the same as the menu items described in the Electron API. I don’t know for sure, though.


#5

I have a alternative suggestion for you.
Try use tool-bar package - https://atom.io/packages/tool-bar
and toolbar-iconshortcuts - https://atom.io/packages/toolbar-iconshortcuts

Is a good alternative from menu icons …