I currently have two panels within another large panel. The left panel is for navigation and the right is for content. I'm trying to modify the content panel background color so I have made an event that triggers on expandnode, and this is where I am stuck.
My right panel ID is #panneau-affichage
and I'm trying to modify the background-color
attribute of the class x-panel-body that lives within. Using:
Ext.get('panneau-affichage').setBodyStyle('backgroundColor : #dddddd');
Firebug states that there is no such function, and with:
Ext.get('panneau-affichage').applyStyle('backgroundColor: #dddddd);
This does the job for the div but is overridden by x-panel-body.