want to change icon color on click of icon
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 99
- Joined: Fri Jul 01, 2022 12:08 pm
want to change icon color on click of icon
Post by shikhar_472 »
Hi Oxygen Team,
I want to change the icon color on click of icon , which should feel like on/off button for action.
Thanks,
Shikhar
I want to change the icon color on click of icon , which should feel like on/off button for action.
Thanks,
Shikhar
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: want to change icon color on click of icon
Post by Gabriel Titerlea »
Hello,
You can add your action to a toolbar and you can specify an HTML element as the icon for that action, on the toolbar.
See this post for an example [1].
During the actionPerformed method you can change the HTML element's look as needed.
Best,
Gabriel
[1] post63306.html#p63306
You can add your action to a toolbar and you can specify an HTML element as the icon for that action, on the toolbar.
See this post for an example [1].
During the actionPerformed method you can change the HTML element's look as needed.
Best,
Gabriel
[1] post63306.html#p63306
-
- Posts: 99
- Joined: Fri Jul 01, 2022 12:08 pm
Re: want to change icon color on click of icon
Post by shikhar_472 »
Hi,
I want to change the same icon image on click of actionperformed.
So the moment i will click on icon, icon image should itself change.
Thanks,
Shikhar.
I want to change the same icon image on click of actionperformed.
So the moment i will click on icon, icon image should itself change.
Thanks,
Shikhar.
Re: want to change icon color on click of icon
Hello,
There is a sample plugin in our Web Author samples plugin repository called web-author-autospellcheck-on-off that adds a button to the toolbar that toggles the autospellcheck state. Each time the action is performed the icon of the action changes.
You can use this code as an example:
https://github.com/oxygenxml/web-author ... /plugin.js
Best Regards,
Mihaela
There is a sample plugin in our Web Author samples plugin repository called web-author-autospellcheck-on-off that adds a button to the toolbar that toggles the autospellcheck state. Each time the action is performed the icon of the action changes.
You can use this code as an example:
https://github.com/oxygenxml/web-author ... /plugin.js
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
Return to “General XML Questions”
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