PDA

View Full Version : Changing background on panel header using panel config



whalethewise
18 Jan 2012, 1:35 PM
Hi

Is it possible to change header's background without modifying css.
Like changing same for panel body using bodyStyle config element?

Thanks

burnnat
18 Jan 2012, 2:35 PM
I don't think it's really possible to do on-the-fly, since ExtJS uses pre-generated images to get gradients on legacy browsers. You obviously can't generate those client-side, so if you want it to look anything like the default header, just with a different base color, you're pretty stuck. It's theoretically possible to do with a straight, flat background color, but that wouldn't look anywhere near as nice as the default ExtJS header style.