I am observing an unexpected behavior regarding applying different
appearances to different instances of a custom widget.

My code structure is basically:

Card widget
- icon child control

Depending on certain properties of the Card, I would like to apply a
different appearance to the icon child control. In the
_createChildControlImpl function, I create the child control named "control"
and then do control.setAppearance("..."), where the name of the appearance I
pass depends on some property of the Card widget. Regardless of what
appearance I assign this way, it seems that all Cards' icon child controls
end up with the same appearance. Is this a feature or a bug?  The names of
the appearances provided are "icon-white" and "icon-white-warning" --- do I
need to use appearance selectors that include an appearance selector for the
Card widget, like "card/icon-white" and "card/icon-white-warning"? I just
assumed that if I am explicitly setting the appearance, then I could use
arbitrary names.

Any tips would be much appreciated. Thanks!

Andrew
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to