Mercurial > lada > lada-client
annotate app/view/widgets/Probenart.js @ 479:d00cc841a876
Set size on initialize in windows.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 21 Jan 2014 15:08:53 +0100 |
parents | debfcc7713e3 |
children | e45f4df57938 |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
367
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
367
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
367
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
367
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
367
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
367
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
367
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
367
diff
changeset
|
8 |
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:
40
diff
changeset
|
9 var probenartStore = 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:
40
diff
changeset
|
10 fields: ['probenartId', 'probenart'], |
367
cdef828f8049
Set autoload to true
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
355
diff
changeset
|
11 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:
40
diff
changeset
|
12 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:
40
diff
changeset
|
13 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:
40
diff
changeset
|
14 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:
40
diff
changeset
|
15 read: 'server/rest/probenart' |
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:
40
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:
40
diff
changeset
|
17 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:
40
diff
changeset
|
18 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:
40
diff
changeset
|
19 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:
40
diff
changeset
|
20 } |
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:
40
diff
changeset
|
21 } |
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:
40
diff
changeset
|
22 }); |
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:
40
diff
changeset
|
23 |
352
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
24 /** |
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
25 * Combobox for Probenart |
5fbcbf330839
Added documenation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
26 */ |
40
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 Ext.define('Lada.view.widgets.Probenart' ,{ |
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 extend: 'Ext.form.ComboBox', |
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 alias: 'widget.probenart', |
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:
40
diff
changeset
|
30 store: probenartStore, |
40
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 displayField:'probenart', |
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
32 valueField: 'probenartId', |
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 emptyText:'Wählen Sie eine Probenart', |
355
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
34 // Enable filtering of comboboxes |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
35 autoSelect: false, |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
36 queryMode: 'local', |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
37 triggerAction : 'all', |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
38 typeAhead: true, |
596501c16560
Issue8. Fixed filtering of comboboxes while typing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
352
diff
changeset
|
39 minChars: 0, |
40
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
40 initComponent: function() { |
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
41 this.callParent(arguments); |
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
42 } |
f9b6de636ad0
Added probenart combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
43 }); |