Mercurial > lada > lada-client
view app/view/widgets/Testdatensatz.js @ 413:e1af66012ef0 0.6
Reverse displayFields Array before configuring the columns of the result list.
Now the displayed columns are in the same order as defined in the query
configuration file.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 23 Sep 2013 14:26:09 +0200 |
parents | 5fbcbf330839 |
children | debfcc7713e3 |
line wrap: on
line source
var testdatensatzStore = Ext.create('Ext.data.Store', { fields: ['testdatensatzId', 'testdatensatz'], data: [ {"testdatensatzId":true, "testdatensatz":"Ja"}, {"testdatensatzId":false, "testdatensatz":"Nein"} ] }); /** * Combobox for Testdatensatz. * This widget is also used a generic "Ja/Nein" combobox. */ Ext.define('Lada.view.widgets.Testdatensatz' ,{ extend: 'Ext.form.ComboBox', editable: false, alias: 'widget.testdatensatz', store: testdatensatzStore, queryMode: 'local', displayField:'testdatensatz', valueField: 'testdatensatzId', emptyText:'Testdatensatz?', initComponent: function() { this.callParent(arguments); } });