view app/view/widgets/Datenbasis.js @ 288:ea60be45fd4d

Remeoved methods which are defined in the base class.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 09 Aug 2013 14:58:58 +0200
parents 70a1b5962930
children 5fbcbf330839
line wrap: on
line source
// Combobox for Datenbasis
var datenbasisStore = Ext.create('Ext.data.Store', {
    fields: ['datenbasisId', 'beschreibung', 'datenbasis'],
    sorters: [{
        property: 'datenbasis',
    }],
    proxy: {
        type: 'ajax',
        api: {
        read: 'server/rest/datenbasis'
        },
        reader: {
            type: 'json',
            root: 'data'
        }
    }
});

Ext.define('Lada.view.widgets.Datenbasis' ,{
        extend: 'Ext.form.ComboBox',
        alias: 'widget.datenbasis',
        store: datenbasisStore,
        displayField:'datenbasis',
        valueField: 'datenbasisId',
        emptyText:'Wählen Sie eine Datenbasis',
    initComponent: function() {
        this.callParent(arguments);
    }
});

http://lada.wald.intevation.org