I am working in extjs4 mvc.I am getting stuck at a point where I want to handle event when tab panels tab going to changed.I am using MVC structure in extjs4. I am tried with tab change event but it never get fired when tab is changed.please give me some advise how to handle such condition...
here is my some code:-- 1) my view file :---
Ext.define('am.view.center.centerTab',{
extend:'Ext.tab.Panel',
id:'centerTabId',
frame:true,
flex:1,
alias:'widget.CenterTab',
minTabWidth: 200,
border: 0,
style: {
borderColor: 'white',
//borderStyle: 'solid'
},
items:[
{
title:'Tab1',
},
{
title:'Tab2',
},
{
title:'Tab3'
}
]//end of items
});// End of login class
2) And here is my controller file some code :---
------
'CenterTab':
{
tabchange:this.tabChaged1
}
}); //end of control
},//end of init function
tabChanged1:function()
{
console.log("tab changed");
},
My requirement is whenever tab is chaged then the tabchange event get handled and particular function is called... Please give me some advise...