Does Atom's Context Menu support icons?



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


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.


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?


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.


I have a alternative suggestion for you.
Try use tool-bar package -
and toolbar-iconshortcuts -

Is a good alternative from menu icons …