Mercurial > lada > lada-client
changeset 261:1375ff0f248d
Issue50. Show ID an text in combobox.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 26 Jul 2013 10:12:58 +0200 (2013-07-26) |
parents | 70a1b5962930 |
children | 1626279daadb |
files | app/view/widgets/Messmethode.js app/view/widgets/Uwb.js |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/widgets/Messmethode.js Thu Jul 25 15:39:15 2013 +0200 +++ b/app/view/widgets/Messmethode.js Fri Jul 26 10:12:58 2013 +0200 @@ -17,6 +17,7 @@ }); Ext.define('Lada.view.widgets.Messmethode' ,{ + tpl: '<tpl for="."><div class="x-combo-list-item" >{mmtId} - {messmethhode}</div></tpl>', extend: 'Ext.form.ComboBox', alias: 'widget.messmethode', store: mmtStore,
--- a/app/view/widgets/Uwb.js Thu Jul 25 15:39:15 2013 +0200 +++ b/app/view/widgets/Uwb.js Fri Jul 26 10:12:58 2013 +0200 @@ -1,6 +1,6 @@ // Combobox for Umweltbereich var uwbStore = Ext.create('Ext.data.Store', { - fields: ['umwId'], + fields: ['umwId', 'umweltBereich'], sorters: [{ property: 'umwId', }], @@ -17,6 +17,7 @@ }); Ext.define('Lada.view.widgets.Uwb' ,{ + tpl: '<tpl for="."><div class="x-combo-list-item" >{umwId} - {umweltBereich}</div></tpl>', extend: 'Ext.form.ComboBox', alias: 'widget.uwb', store: uwbStore,