Mercurial > lada > lada-client
comparison app/view/widget/MessprogrammLand.js @ 1116:92c0fa2f29b0
complete some comboboxes in probe form and messprogramm form
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Thu, 19 May 2016 14:56:43 +0200 |
parents | 9bcd17f7a0ae |
children | 9c8b5cbb929a |
comparison
equal
deleted
inserted
replaced
1115:6866be10e40c | 1116:92c0fa2f29b0 |
---|---|
11 */ | 11 */ |
12 Ext.define('Lada.view.widget.MessprogrammLand', { | 12 Ext.define('Lada.view.widget.MessprogrammLand', { |
13 extend: 'Lada.view.widget.base.ComboBox', | 13 extend: 'Lada.view.widget.base.ComboBox', |
14 alias: 'widget.messprogrammland', | 14 alias: 'widget.messprogrammland', |
15 store: 'messprogrammkategorie', | 15 store: 'messprogrammkategorie', |
16 displayField: 'display', | 16 displayField: 'id', |
17 valueField: 'id', | 17 valueField: 'id', |
18 emptyText: 'Wählen Sie eine Landesmessprogramm', | 18 emptyText: 'Wählen Sie ein Landesmessprogramm', |
19 editable: this.editable || false, | |
20 forceSelection: true, | |
19 // Enable filtering of comboboxes | 21 // Enable filtering of comboboxes |
22 autoSelect: false, | |
20 queryMode: 'local', | 23 queryMode: 'local', |
21 triggerAction: 'all', | 24 triggerAction: 'all', |
22 typeAhead: true, | 25 typeAhead: false, |
23 minChars: 0, | 26 minChars: 0, |
24 layout: 'hbox', | 27 tpl: Ext.create("Ext.XTemplate", |
28 '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' + | |
29 '{mplId} - {bezeichnung}</div></tpl>'), | |
30 displayTpl: Ext.create('Ext.XTemplate', | |
31 '<tpl for=".">{mplId} - {bezeichnung}</tpl>'), | |
25 | 32 |
26 initComponent: function() { | 33 initComponent: function() { |
27 this.store = Ext.data.StoreManager.get('messprogrammkategorie'); | 34 this.store = Ext.data.StoreManager.get('messprogrammkategorie'); |
28 if (!this.store) { | 35 if (!this.store) { |
29 this.store = Ext.create('Lada.store.MessprogrammKategorie'); | 36 this.store = Ext.create('Lada.store.MessprogrammKategorie'); |