0

How can i access or reference the TitleBar component which is inside a Ext.Panel

code

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 





    }





  });
4

1 に答える 1

0

ComponentQueryセレクターを使用します。

var bar = this.down('titlebar'); // Get child item at any depth by xtype

于 2013-08-27T04:15:33.993 に答える