Page 1 of 1
Insert Icon to custom framework action
Posted: Tue Jan 23, 2018 11:12 am
I created a custom framework action and added it to DITA toolbar and context-menu.
Please guide me how to add an icon to the action.
Re: Insert Icon to custom framework action
Posted: Wed Jan 24, 2018 5:41 pm
You must override the getLargeIcon(devicePixelRation)
methods from sync.actions.AbstractAction  to provide the absolute URL of the toolbar and contextual menu icons.
The icons must be placed in the web/
sub-folder of the framework. To obtain the absolute URL of the icon you must concatenate sync.ext.Registry.extensionURL
 with the relative path of the icon to the web/
 https://www.oxygenxml.com/maven/com/oxy ... ction.html
 https://www.oxygenxml.com/maven/com/oxy ... tensionURL