Mercurial > lada > lada-client
diff app/model/Deskriptor.js @ 776:da14e0f3e599
merged
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 12 May 2015 16:26:05 +0200 |
parents | 274a843caf44 |
children | f73ca04d73a7 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/model/Deskriptor.js Tue May 12 16:26:05 2015 +0200 @@ -0,0 +1,36 @@ +/** + * + */ +Ext.define('Lada.model.Deskriptor', { + extend: 'Ext.data.Model', + + /** + * Fields are: + * - ... + */ + fields: [{ + name: 'bedeutung' + }, { + name: 'beschreibung' + }, { + name: 'ebene' + }, { + name: 'id' + }, { + name: 'sn' + }, { + name: 'sXx' + }], + + idProperty: 'id', + + proxy: { + type: 'rest', + url: 'lada-server/deskriptor', + reader: { + type: 'json', + root: 'data', + totalProperty: 'totalCount' + } + } +});