Bodies.js
339 Bytes
Ext.define('treps.store.Bodies', {
extend: 'Ext.data.Store',
model: 'treps.model.Body',
sorters: [{
property: 'fullname',
direction: 'ASC'
}],
sortOnLoad: true,
remoteSort: false,
proxy: {
type: 'direct',
reader : {
type : 'json',
root : 'bodies'
},
api: {
read : "TREPSAction.getBodiesList"
}
}
});