# HG changeset patch # User Torsten Irländer # Date 1373292855 -7200 # Node ID 808c24773713fb88a5448784ee9e5f8d3695377c # Parent 748614e867b1931959bad10496a0c6a320e37f85 Added new widget to list the available Statuswerte. diff -r 748614e867b1 -r 808c24773713 app/view/widgets/Statuswert.js --- /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); + } +});