comparison app/view/widgets/Uwb.js @ 120:19eab475bbe5

Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 21 Jun 2013 16:53:39 +0200
parents a35119566841
children 70a1b5962930
comparison
equal deleted inserted replaced
119:1a08905b46e2 120:19eab475bbe5
1 // Combobox for Umweltbereich 1 // Combobox for Umweltbereich
2 var uwbStore = Ext.create('Ext.data.Store', {
3 fields: ['umwId'],
4 proxy: {
5 type: 'ajax',
6 api: {
7 read: 'server/rest/uwb'
8 },
9 reader: {
10 type: 'json',
11 root: 'data'
12 }
13 }
14 });
15
2 Ext.define('Lada.view.widgets.Uwb' ,{ 16 Ext.define('Lada.view.widgets.Uwb' ,{
3 extend: 'Ext.form.ComboBox', 17 extend: 'Ext.form.ComboBox',
4 alias: 'widget.uwb', 18 alias: 'widget.uwb',
5 store: 'Uwb', 19 store: uwbStore,
6 displayField:'umwId', 20 displayField:'umwId',
7 valueField: 'umwId', 21 valueField: 'umwId',
8 emptyText:'Wählen Sie einen Umweltbereich', 22 emptyText:'Wählen Sie einen Umweltbereich',
9 initComponent: function() { 23 initComponent: function() {
10 this.callParent(arguments); 24 this.callParent(arguments);

http://lada.wald.intevation.org