diff app/model/Deskriptor.js @ 769:274a843caf44

Added model and store for deskriptoren.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 12 May 2015 15:10:52 +0200
parents
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 15:10:52 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'
+        }
+    }
+});

http://lada.wald.intevation.org