view app/view/widgets/Testdatensatz.js @ 443:0ab89a3b9090

Added new widget to enter the value for messwertNwg in when creating new messwerte.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 03 Dec 2013 11:24:13 +0100
parents 5fbcbf330839
children debfcc7713e3
line wrap: on
line source
var testdatensatzStore = Ext.create('Ext.data.Store', {
    fields: ['testdatensatzId', 'testdatensatz'],
    data: [
        {"testdatensatzId":true, "testdatensatz":"Ja"},
        {"testdatensatzId":false, "testdatensatz":"Nein"}
    ]
});

/**
 * Combobox for Testdatensatz.
 * This widget is also used a generic "Ja/Nein" combobox.
 */
Ext.define('Lada.view.widgets.Testdatensatz' ,{
        extend: 'Ext.form.ComboBox',
        editable: false,
        alias: 'widget.testdatensatz',
        store: testdatensatzStore,
        queryMode: 'local',
        displayField:'testdatensatz',
        valueField: 'testdatensatzId',
        emptyText:'Testdatensatz?',
    initComponent: function() {
        this.callParent(arguments);
    }
});

http://lada.wald.intevation.org