[SOLVED] headerCfg child elements does not render
i have following problem,
i define a headerCfg with a child element
PHP Code:
Ext.onReady(function() {
p = new Ext.Panel({
title : 'title',
renderTo : document.body,
width : 200,
height : 20,
html : 'content',
headerCfg : {
tag : 'div',
cls : 'x-panel-header-test',
cn : [{
tag : 'div',
cls : 'x-panel-header-status',
html : 'titlechild'
}]
}
});
});
the element with the class "x-panel-header-test" was created but not the child div with class 'x-panel-header-status'.
Where is my error?
Does the header rendering process remove all child elements for the tititle span and tools div?
i am happy about any hints
Nils
headerAsText config option
You may also want to set the headerAsText config option to FALSE. This will stop the panel from nesting all of your child elements in a span tag.