コントローラーから jQuery-UI メソッドを呼び出す方法が必要です。メソッドはsort-ableのupdateメソッドです。ビューの準備ができたら、ソート可能にしようとしましたが、更新メソッドを呼び出す方法は? コントローラーとビューは次のようになります。
App.theController = Ember.ArrayController.extend({
method:function(){
//calling update method of sortable
}
});
App.theView = Ember.View.extend({
didInsertElement:function(){
this.$().sortable({
update:function(){
}
});
}
});
method
ここで、ビュー内の update メソッドを呼び出したいと思いsortable
ます。