开发者

how can i hide a title in a Ext.formPanel

开发者 https://www.devze.com 2023-04-06 11:22 出处:网络
how can i hide in runtime the title of panel?? this is my code: { xtype: \'panel\', id: \'pnlAllCenter\',

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();
0

精彩评论

暂无评论...
验证码 换一张
取 消