控件中的Sencha touch getView()未定义

时间:2014-04-08 12:14:13

标签: sencha-touch sencha-touch-2

我按照this教程学习sencha touch 2.在第3章中,当我想要激活第二个视图时,它是未定义的:

var newPage = this.getNewPageContainer();
Ext.Viewport.animateActiveItem(newPage, this.slideRightTransition); // noting happend.

console.log(this.getNewChallangeContainer()); // print "undefined"

我也在config上设置,参考:

refs: {
   // We're going to lookup our views by xtype.
   pagecontainer: "pagecontainer",
   newPageContainer: "newpagecontainer"
}

谢谢:)

0 个答案:

没有答案