0
こんにちは私はtoolbar.Nowに検索ボタンを追加したsencha touch 2.0のアプリケーションを作成しています。下のコードはsencha touch 2.0に対応しています
私は私のプロジェクトを実行しながらlogcatは、私は私のコントローラクラスを追加していfile.Belowエラーがコントローラであることを私に示しています。
Ext.define('MyApp.controller.search',{
extend: 'Ext.app.Controller',
config: {
refs: {
groupList: "groupList"
},
control: {
groupList: {
searchField: "searchField"
}
}
},
searchField: function(){
// console.log("SearchField Tapped");
if (! this.searchView)
{
this.searchView = this.render({
xtype: 'searchView',
});
var cancelSearchBtn = this.searchView.query('#'+cancelSearchBtn)[0];
cancelSearchBtn.setHandler(function(){
this.searchView.hide();
}, this);
}
this.searchView.show({
type: 'slide',
direction: 'up',
duration: 500,
});
},
launch: function(){
alert('Hello search');
},
});
私はlogcatで、次のエラーを取得しています: -
TypeError: Result of expression 'this.render' [undefined] is not a function. at
file:///android_asset/www/app/controller/SearchController.js:18
は、問題を取り除くために私を助けて。
Thanx事前に。
誰が私に理由を教えてくれますか? – himanshu