嘿,我刚刚开始使用sencha touch 2.0,现在我在我的项目中使用mvc时遇到了问题。我有一个简单的列表,我想打开一个详细视图,列表项上的选项卡。所以我试图告诉我的控制器处理点击这个清单,但它根本不起作用。 我在做什么错?Sencha Touch 2.0控制器无法处理点击我的清单
这里是我的控制器
Ext.define('MyFirstApp.controller.Main', {
extend: 'Ext.app.Controller',
views: ['Home', 'People'],
models: ['People'],
stores: ['Peoples'],
config: {
refs: {
people: 'peoplelist'
},
control: {
people: {
itemtap: 'testFunc'
}
}
},
testFunc: function() {
console.log("something was clicked");
}
});
'peoplelist'是我列表的xtype。 感谢您的帮助:-)
嘿@Phil米面临同样的问题,你可以看看在这个'http:// stackoverflow.com/questions/18016343/itemtap-is-getting-getting-fired-in-list' – Hunt 2013-08-02 19:54:46