Mercurial > lada > lada-client
annotate app/view/widgets/Datenbasis.js @ 464:73e18f2557e6
Added properties for import.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 09 Jan 2014 11:01:34 +0100 |
parents | f9bb1ecf6462 |
children | debfcc7713e3 |
rev | line source |
---|---|
121
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
1 var datenbasisStore = Ext.create('Ext.data.Store', { |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
2 fields: ['datenbasisId', 'beschreibung', 'datenbasis'], |
260
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
3 sorters: [{ |
422
f9bb1ecf6462
Removed trailing commas.
Raimund Renkert <rrenkert@intevation.de>
parents:
367
diff
changeset
|
4 property: 'datenbasis' |
260
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
5 }], |
367
cdef828f8049
Set autoload to true
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
355
diff
changeset
|
6 autoLoad: true, |
121
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
7 proxy: { |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
8 type: 'ajax', |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
9 api: { |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
10 read: 'server/rest/datenbasis' |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
11 }, |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
12 reader: { |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
13 type: 'json', |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
14 root: 'data' |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
15 } |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
16 } |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
17 }); |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
18 |
352
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
19 /** |
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
20 * Combobox for Datenbasis |
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
21 */ |
41
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 Ext.define('Lada.view.widgets.Datenbasis' ,{ |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 extend: 'Ext.form.ComboBox', |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 alias: 'widget.datenbasis', |
121
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
41
diff
changeset
|
25 store: datenbasisStore, |
41
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 displayField:'datenbasis', |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 valueField: 'datenbasisId', |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 emptyText:'Wählen Sie eine Datenbasis', |
355
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
29 // Enable filtering of comboboxes |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
30 autoSelect: false, |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
31 queryMode: 'local', |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
32 triggerAction : 'all', |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
33 typeAhead: true, |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
34 minChars: 0, |
41
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
35 initComponent: function() { |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
36 this.callParent(arguments); |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
37 } |
a1be7ccd4d0c
Added datenbasis combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 }); |