Mercurial > lada > lada-client
view app/model/Staat.js @ 326:702bf882f5a8
Inherit form model.base. Formatting
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 13 Aug 2013 08:54:24 +0200 |
parents | dd939a09e4dd |
children | e1364948eb01 |
line wrap: on
line source
/** * Model class for Staat */ Ext.define('Lada.model.Staat', { extend: 'Ext.data.Model', requires: ['Lada.lib.Helpers'], fields: [ {name: "staatId", type: 'int'}, {name: "staat"}, {name: "staatIso"}, {name: "staatKurz"} ], idProperty: "staatId", proxy: { type: 'rest', appendId: true, //default url: 'server/rest/staat', api: { }, reader: { type: 'json', root: 'data' } } });