Cancel tabChange
I have this code but i don't know how valid that.
Ext.getCmp
('TabsX').on('beforetabchange',checkTab);
function checkTab(tp,e,tab)
{
var myID = tp.getActiveTab().getId(); //It retrieves the ID of current Tab before of change
//Here i have to put the code that valid if the user can change to another tab, i was read on the API help some as "put the e.cancel = true" but i'm not sure how use it.
}
Thanks
#If you have any other info about this subject , Please add it free.# |