View Full Version : Object's config is undefined

9 Sep 2013, 7:15 AM
I want to create a panel with title-header taht has no blue background color and only bottom border. That's why i want to add a custom style for the header. However I can't, becasue the headerCls and all the configs are undefined, although the object exists and i can get 10 Header's properties.

I spent all day working at this issue, and I have no idea how to resolve it.

Thank You for your help in advance.

11 Sep 2013, 5:45 AM
Do you want to globally change all header styling or just for some panels?

11 Sep 2013, 6:04 AM
Only specific panels, not all of them

11 Sep 2013, 6:25 AM
So you can give the panel a cls config and target the header that way:

new Ext.Panel({
renderTo : document.body,
title : 'Hello',
cls : 'my-panel'

in CSS:

.my-panel .x-panel-header {

11 Sep 2013, 6:52 AM
Wow, that's nice, thank You very much!;)