Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
197:748614e867b1 | 198:808c24773713 |
---|---|
1 // Combobox for Statuswerte | |
2 var statuswerteStore = Ext.create('Ext.data.Store', { | |
3 fields: ['id', 'status'], | |
4 data: [ | |
5 {"id":1, "status":"nicht vergeben"}, | |
6 {"id":2, "status":"plausibel"}, | |
7 {"id":3, "status":"nicht repräsentativ"}, | |
8 {"id":4, "status":"nicht plausibel"} | |
9 ] | |
10 }); | |
11 | |
12 Ext.define('Lada.view.widgets.Statuswert' ,{ | |
13 extend: 'Ext.form.ComboBox', | |
14 alias: 'widget.statuswert', | |
15 store: statuswerteStore, | |
16 displayField:'status', | |
17 valueField: 'id', | |
18 typeAhead: true, | |
19 emptyText:'Wählen Sie eine Status', | |
20 initComponent: function() { | |
21 this.callParent(arguments); | |
22 } | |
23 }); |