Mercurial > lada > lada-client
view app/view/widgets/Statuswert.js @ 238:2a23fcca8ead
On Default the proben list will have no columns at all. The are added
dynamically later when the user selects a search query.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 23 Jul 2013 11:29:37 +0200 |
parents | 808c24773713 |
children | 5fbcbf330839 |
line wrap: on
line source
// 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); } });