Sencha touch 2 进入外部面板内的标题栏
如何访问或引用Sencha touch 2 进入外部面板内的标题栏,sencha-touch-2,Sencha Touch 2,如何访问或引用外部面板中的标题栏组件 代码 使用ComponentQuery选择器: var bar=this.down('titlebar');//通过xtype在任意深度获取子项 Ext.define('appv.view.ContactInfoPanel',{ extend:'Ext.Panel', xtype:'contactinfopanel', requires: [ 'Ext.TitleBar','contactapp.view.ContactInf
外部面板中的标题栏
组件
代码
使用
ComponentQuery
选择器:
var bar=this.down('titlebar');//通过xtype在任意深度获取子项
Ext.define('appv.view.ContactInfoPanel',{
extend:'Ext.Panel',
xtype:'contactinfopanel',
requires: [ 'Ext.TitleBar','contactapp.view.ContactInfo'],
config:{
layout:'vbox',
items:[{
xtype: 'titlebar',
height:'65px',
center:true
},{
xtype:'contactinfo',
}]
},
initialize:function(){
// Here i want to access the TitleBar and set its title dynamically
}
});