view app/view/widgets/Betriebsart.js @ 221:cf83b382dc02

setReadOnly now also iterates over the toolbars within the form and hide them if the form is marked as readonly
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 16 Jul 2013 09:59:25 +0200
parents c05fda928b82
children 5fbcbf330839
line wrap: on
line source
// Combobox for Betriebsart
var betriebsartStore = Ext.create('Ext.data.Store', {
    fields: ['betriebsartId', 'betriebsart'],
    data: [
        {"betriebsartId":"1", "betriebsart":"Normal-/Routinebtrieb"},
        {"betriebsartId":"2", "betriebsart":"Störfall/Intensivbetrieb"}
    ]
});

Ext.define('Lada.view.widgets.Betriebsart' ,{
        extend: 'Ext.form.ComboBox',
        alias: 'widget.betriebsart',
        store: betriebsartStore,
        queryMode: 'local',
        displayField:'betriebsart',
        valueField: 'betriebsartId',
        emptyText:'Wählen Sie eine Betriebsart',
    initComponent: function() {
        this.callParent(arguments);
    }
});

http://lada.wald.intevation.org