Mercurial > lada > lada-client
diff app/view/widget/Deskriptor.js @ 850:43f3a53d07d3
Added templates to deskriptor cbs to display the sn number and a text.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 08 Jul 2015 12:41:55 +0200 |
parents | 8de4ec66d0e6 |
children | 81e7c847cb58 |
line wrap: on
line diff
--- a/app/view/widget/Deskriptor.js Wed Jul 08 12:40:56 2015 +0200 +++ b/app/view/widget/Deskriptor.js Wed Jul 08 12:41:55 2015 +0200 @@ -12,7 +12,7 @@ Ext.define('Lada.view.widget.Deskriptor', { extend: 'Lada.view.widget.base.ComboBox', alias: 'widget.deskriptor', - displayField: 'beschreibung', + displayField: 'id', valueField: 'id', // Enable filtering of comboboxes triggerAction: 'all', @@ -20,6 +20,11 @@ layer: null, queryMode: 'remote', remoteFilter: true, + tpl: Ext.create('Ext.XTemplate', + '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' + + '{sn} - {beschreibung}</div></tpl>'), + displayTpl: Ext.create('Ext.XTemplate', + '<tpl for=".">{sn} - {beschreibung}</tpl>'), listeners: { focus: {