diff app/view/widgets/Statuswert.js @ 198:808c24773713

Added new widget to list the available Statuswerte.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 08 Jul 2013 16:14:15 +0200
parents
children 5fbcbf330839
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/widgets/Statuswert.js	Mon Jul 08 16:14:15 2013 +0200
@@ -0,0 +1,23 @@
+// Combobox for Statuswerte
+var statuswerteStore = Ext.create('Ext.data.Store', {
+    fields: ['id', 'status'],
+    data: [
+        {"id":1, "status":"nicht vergeben"},
+        {"id":2, "status":"plausibel"},
+        {"id":3, "status":"nicht repräsentativ"},
+        {"id":4, "status":"nicht plausibel"}
+    ]
+});
+
+Ext.define('Lada.view.widgets.Statuswert' ,{
+        extend: 'Ext.form.ComboBox',
+        alias: 'widget.statuswert',
+        store: statuswerteStore,
+        displayField:'status',
+        valueField: 'id',
+        typeAhead: true,
+        emptyText:'Wählen Sie eine Status',
+    initComponent: function() {
+        this.callParent(arguments);
+    }
+});

http://lada.wald.intevation.org