extjs4.1 - Extjs 4 - How to up to parent component in initComponent function -
i define gridpanel like
ext.define('example', { extend: 'ext.grid.panel', alias: 'mygrid', store:ext.create('ext.data.store', { fields: [ {name: 'name'} ] }), initcomponent: function() { alert(this.up('window').title); //but error this.up(...) undefined this.callparent(arguments); } ...
and create window have item above
items: { xtype: 'mygrid' }
i want thing in parent componet. how parent component
in initcomponent function. thanks
initcomponent: function() { var me = this; this.callparent(arguments); me.on('render', function() { alert(me.up('window').title); }); }
Comments
Post a Comment