[Lada-commits] [PATCH 2 of 3] Added templates to deskriptor cbs to display the sn number and a text

Wald Commits scm-commit at wald.intevation.org
Wed Jul 8 12:42:26 CEST 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1436352115 -7200
# Node ID 43f3a53d07d36989ed07de094f2faafcfb9c8542
# Parent  8de4ec66d0e6198e81a9cc3d8bbf2e558010226f
Added templates to deskriptor cbs to display the sn number and a text.

diff -r 8de4ec66d0e6 -r 43f3a53d07d3 app/view/widget/Deskriptor.js
--- 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: {


More information about the Lada-commits mailing list