view app/view/widgets/Testdatensatz.js @ 189:214d1b274a50

As the model now should have a readonly flag, the check if the form must be rendered as readonly was moved to the place where the model is actually bound to the form.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 05 Jul 2013 14:49:15 +0200
parents c05fda928b82
children 5fbcbf330839
line wrap: on
line source
// Combobox for Testdatensatz
var testdatensatzStore = Ext.create('Ext.data.Store', {
    fields: ['testdatensatzId', 'testdatensatz'],
    data: [
        {"testdatensatzId":true, "testdatensatz":"Ja"},
        {"testdatensatzId":false, "testdatensatz":"Nein"}
    ]
});

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