2017-11-21 6 views
0

の現在のソートキーを取得します。私は、ヘッダーのラベルをクリックすると今は私がBackgrid.jsによって作られたテーブル次きBackgrid表

this.grid = new FixedWidthGrid({ 
     columns: this.columns, 
     row: SelectableDocumentContextMenuRow.extend({ 
      contextMenu: ContextMenuHelper.onRightClick 
     }), 
     collection: self.collection, 
     header: FilterHeader, 
     contextMenu: ContextMenuHelper.onRightClick 
    }); 

を、テーブル全体がクライアント上でその属性によって並べ替えられます。

コレクションの現在のソートキー/属性(名前、年齢など)を取得するにはどうすればよいですか?

答えて

0

backbone.paginatorを使用している場合は、値collection.state.sortKey

関連する問題