Insert Icon to custom framework action
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 17
- Joined: Fri Dec 29, 2017 11:16 am
Insert Icon to custom framework action
Post by pramanikhimangshu »
Hello,
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.
Thank You.
Regards,
Himangshu.
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.
Thank You.
Regards,
Himangshu.
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Insert Icon to custom framework action
Hi,
You must override the getLargeIcon(devicePixelRation) and getSmallIcon(devicePixelRation) methods from sync.actions.AbstractAction [1] 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[2] with the relative path of the icon to the web/ sub-folder.
[1] https://www.oxygenxml.com/maven/com/oxy ... ction.html
[2] https://www.oxygenxml.com/maven/com/oxy ... tensionURL
Best Regards,
Mihaela
You must override the getLargeIcon(devicePixelRation) and getSmallIcon(devicePixelRation) methods from sync.actions.AbstractAction [1] 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[2] with the relative path of the icon to the web/ sub-folder.
[1] https://www.oxygenxml.com/maven/com/oxy ... ction.html
[2] https://www.oxygenxml.com/maven/com/oxy ... tensionURL
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service