Skip to content

pagination sort

Pierre Besson edited this page Jan 16, 2015 · 4 revisions

Collection

How to handle default sort on a list and the default name on the list.

var CollectionCustom = Focus.Models.PaginationCollection.extend({
//Name for the export columns.
exportColumnLabels: {
  "propertyName": "translation.key"
}
//Default sort on fields 
sortField: { 
    field: "fieldName", 
    order: "asc" 
  };
})
Clone this wiki locally