Mercurial > lada > lada-client
comparison app/view/widgets/Mst.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 | 84f32c62670f |
children | 70a1b5962930 |
comparison
equal
deleted
inserted
replaced
119:1a08905b46e2 | 120:19eab475bbe5 |
---|---|
1 // Combobox for Messtelle | 1 // Combobox for Messtelle |
2 var mstStore = Ext.create('Ext.data.Store', { | |
3 fields: ['mstId'], | |
4 proxy: { | |
5 type: 'ajax', | |
6 api: { | |
7 read: 'server/rest/mst' | |
8 }, | |
9 reader: { | |
10 type: 'json', | |
11 root: 'data' | |
12 } | |
13 } | |
14 }); | |
15 | |
2 Ext.define('Lada.view.widgets.Mst' ,{ | 16 Ext.define('Lada.view.widgets.Mst' ,{ |
3 extend: 'Ext.form.ComboBox', | 17 extend: 'Ext.form.ComboBox', |
4 alias: 'widget.mst', | 18 alias: 'widget.mst', |
5 store: 'Mst', | 19 store: mstStore, |
6 displayField:'mstId', | 20 displayField:'mstId', |
7 valueField: 'mstId', | 21 valueField: 'mstId', |
8 typeAhead: true, | 22 typeAhead: true, |
9 emptyText:'Wählen Sie eine Messstelle', | 23 emptyText:'Wählen Sie eine Messstelle', |
10 initComponent: function() { | 24 initComponent: function() { |