Mercurial > lada > lada-client
view app/view/widgets/Testdatensatz.js @ 418:957a4a9fd260
Enabled multiselect for query filter. (Used as example in final workshop)
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 09 Oct 2013 15:02:06 +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); } });