Blame view

ihm/app/store/Bodies.js 339 Bytes
9524040e   Laurent BEIGBEDER   6926: Prise en co...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"
		}
	}

});