how can i hide in runtime the title of panel??
this is my code:
{
xtype: 'panel',
id: 'pnlAllCenter',
border: false,
layout: {
align: 'stretch',
type: 'vbox'
},
title: '<center>Main Application</center>'
}
now in runtime i need to hide this title! (i need something like this Ext.getCmp('pnlAllCenter').title.r开发者_运维技巧emove();)
thanks!!
You're quite close...
Ext.getCmp('pnlAllCenter').getHeader().hide();
EDIT
To completely remove the header use
Ext.getCmp('pnlAllCenter').getHeader().destroy();
精彩评论