You could just use a VBox with a label inside of it.  In the setValue method you’d simply set the backgroundColor style on the VBox (in addition to the text of the label).

 

Matt

 


From: Andrew Spaulding [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 02, 2005 4:58 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] simple datagrid cell colour renderer

 


Hi all,

Im trying to write a cell renderer that changes the background colour
of a cell depending on the number that is displayed in it.

Is this a simple task? I'm really struggling... Should I make the
cell renderer a text box and just set the background colour on that?

Best,

Andrew.




Reply via email to