UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

20 lines (15 loc) 505 B
Ext.define('KitchenSink.view.grid.MultipleSortingController', { extend: 'Ext.app.ViewController', alias: 'controller.multi-sort-grid', updateSort: function () { var store = this.getView().store, details = [], vm = this.getViewModel(); store.getSorters().each(function(sorter) { details.push(sorter.getProperty() + ' ' + sorter.getDirection()); }); vm.set({ sortOrder: details.join(', ') }); } });