Hi,
you could use the theming mechanism to switch an icon depending on a status.
Appearance:
"specialImage":
{
include: "image",
style : function(states)
{
var iconSource = states.active ? "....active.png" : "....inactive.png";
return {
source: iconSource
}
}
},
Implementation:
theImage.addState("active");
HTH,
Rob.
Von: Andreas Fink [mailto:[email protected]]
Gesendet: Dienstag, 25. September 2012 11:46
An: Robert Nimax; 'qooxdoo Development ([email protected])'
Betreff: [qooxdoo-devel] dynamic icons
Hi all,
the framework provides an easy way to switch the icon library between oxygen
and tango.
Is there way to do the same with custom icon libraries?
For example, we want to provide two themes in our app a "colored" one and a
one in "black and white".
Therefore we want to switch the icons as well between color and grayscale.
Regards,
Andreas
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel