PDA

View Full Version : Setting background of BorderLayout-Panel



thaberkern
7 Nov 2007, 6:08 AM
Hi all,

i want to change to background of the center panel of an Border-Layout depending of my application state (edit mode, readonly-mode...). But i only found the possibility to set the color via changing the css style of extjs. But how can i do this at runntime with javascript???

Any ideas?

Timo

tryanDLS
7 Nov 2007, 9:17 AM
You can change it at runtime using Element.addClass or setStyle.

thaberkern
7 Nov 2007, 11:36 PM
thats it.

layout.getRegion('center').getEl().setStyle(...) is working great

thanks

Timo