Skip to content

Instantly share code, notes, and snippets.

@elchele
Created December 21, 2016 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elchele/22a0b863070333f48222a0ae33a39636 to your computer and use it in GitHub Desktop.
Save elchele/22a0b863070333f48222a0ae33a39636 to your computer and use it in GitHub Desktop.
Custom controller for selection-list view, defines sorting on Assigned To list of users
({
/* File: ./custom/modules/Users/clients/base/views/selection-list/selection-list.js */
extendsFrom: 'SelectionListView',
initialize: function(options){
this._super('initialize', [options]);
this.collection.orderBy = {'field':'full_name', 'direction':'asc'};
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment