PDA

View Full Version : How to change the backgroundcolor of a panel during update event



squalo
30 Jan 2012, 11:43 AM
I got a model bind to a panel with a template. While loading data (update: ... ) I want to change the BG Color of the panel in dependency of a certain item of the loaded data.
Any possibilities or hints?
Thx in advance.

mitchellsimoens
30 Jan 2012, 12:31 PM
Add and then remove a CSS class

squalo
30 Jan 2012, 12:44 PM
Sry, but I don't understand. Could you pls give a short code snippet?
Thx

Izhaki
31 Jan 2012, 6:01 AM
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.AbstractComponent-method-addClass