Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 150094

Re: Replace image in UI

$
0
0

It's not entirely clear what you're trying to do. When you refer to checkbox do you mean the iconbutton is your checkbox?

You've defined both images so you should see it changing when you click the button, but for it to work as a checkbox you need to enable its toggle mode:

{style:'toolbutton', toggle:true}

 

Otherwise, if you wanted to change the icon based on a separate checkbox control you could just change it in that checkbox's onClick function using:

button.image = someOtherImage;

but that only changes the "off" icon, I'm not sure how you would access the other one.


Viewing all articles
Browse latest Browse all 150094


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>