Mercurial > lada > lada-client
annotate app/view/widgets/Verwaltungseinheit.js @ 425:2ff236e5d2d0
Added layout to the Viewport (root panel) to fix some layout issues.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 08 Nov 2013 12:31:58 +0100 |
parents | a4eb98a6ea20 |
children | 651ee49ff3c2 |
rev | line source |
---|---|
352
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
153
diff
changeset
|
1 /** |
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
153
diff
changeset
|
2 * Combobox for Verwaltungseinheit |
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
153
diff
changeset
|
3 */ |
153
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 Ext.define('Lada.view.widgets.Verwaltungseinheit' ,{ |
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 extend: 'Ext.form.ComboBox', |
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 alias: 'widget.verwaltungseinheiten', |
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 store: 'Verwaltungseinheiten', |
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 displayField: 'bezeichnung', |
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 valueField: 'gemId', |
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 emptyText:'Wählen Sie eine Verwaltungseinheit', |
417
a4eb98a6ea20
Disabled trigger for combobox and request data if two chars typed.
Raimund Renkert <rrenkert@intevation.de>
parents:
416
diff
changeset
|
11 hideTrigger: true, |
355
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
12 // Enable filtering of comboboxes |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
13 autoSelect: false, |
416
0814c50caa81
Set querymode to remote to only load a subset of items of the
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
355
diff
changeset
|
14 queryMode: 'remote', |
417
a4eb98a6ea20
Disabled trigger for combobox and request data if two chars typed.
Raimund Renkert <rrenkert@intevation.de>
parents:
416
diff
changeset
|
15 triggerAction : 'type', |
355
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
16 typeAhead: true, |
417
a4eb98a6ea20
Disabled trigger for combobox and request data if two chars typed.
Raimund Renkert <rrenkert@intevation.de>
parents:
416
diff
changeset
|
17 minChars: 2, |
153
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 initComponent: function() { |
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 this.callParent(arguments); |
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 } |
e9fb4814153a
Added files for Staat, Ort and Verwaltungseinheiten.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 }); |