私は次のコントローラーを持っています:
var ProductsController = Ember.ArrayController.extend({
search: function(queryString) {
this.set('model', App.Product.find({query: queryString }));
}
});
およびテキスト フィールド:
var SearchFieldView = Ember.TextField.extend({
insertNewline: function() {
this.get('controller').search(this.get('value'));
}
});
ここで、コントローラーが検索機能で新しいモデルをロードするときに、テキスト フィールドを無効にしたいと考えています。ビューのようなものを使用してdisabledBinding: 'controller.content.isLoaded'
も機能しません。