bluefox617
5 Feb 2011, 8:27 AM
Here is my code:
App.View.Test = Ext.extend(Ext.Panel,{
layout:'card',
fullscreen:true,
activeItem:0,
initComponent: function() {
Ext.apply(this,{
items:[
{
xtype:'button',
handler:this.ttt
},
{
html:'111'
},
{
html:'222'
}
]
});
App.View.Test.superclass.initComponent.call(this);
},
ttt:function(){
this.setActiveItem(2,'fade');
}
});
It doesn't work,
console said that"TypeError: Object [object Object] has no method 'setActiveItem'"
why?????please help me !!!
App.View.Test = Ext.extend(Ext.Panel,{
layout:'card',
fullscreen:true,
activeItem:0,
initComponent: function() {
Ext.apply(this,{
items:[
{
xtype:'button',
handler:this.ttt
},
{
html:'111'
},
{
html:'222'
}
]
});
App.View.Test.superclass.initComponent.call(this);
},
ttt:function(){
this.setActiveItem(2,'fade');
}
});
It doesn't work,
console said that"TypeError: Object [object Object] has no method 'setActiveItem'"
why?????please help me !!!