Closed btheeten closed 4 years ago
It seems the phosphorjs context menus include an icon, which (according to the code) needs to be set through an iconClass. However setting this iconClass doesn't seem to be exposed through the IItemOptions interface.
The content for a menu item is provided by the underlying command. You add the iconClass when you register the command in the CommandRegistry.
iconClass
CommandRegistry
Thank you very much for the quick answer. That solves my problem.
It seems the phosphorjs context menus include an icon, which (according to the code) needs to be set through an iconClass. However setting this iconClass doesn't seem to be exposed through the IItemOptions interface.