view app/view/widget/MessprogrammLand.js @ 1114:66d4b392bc5f

Adapt icon for button to Rev 05948135ce75.
author Tom Gottfried <tom@intevation.de>
date Wed, 18 May 2016 14:05:50 +0200
parents 9bcd17f7a0ae
children 92c0fa2f29b0
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
 * Software engineering by Intevation GmbH
 *
 * This file is Free Software under the GNU GPL (v>=3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out
 * the documentation coming with IMIS-Labordaten-Application for details.
 */

/**
 * Combobox for MessprogrammLand
 */
Ext.define('Lada.view.widget.MessprogrammLand', {
    extend: 'Lada.view.widget.base.ComboBox',
    alias: 'widget.messprogrammland',
    store: 'messprogrammkategorie',
    displayField: 'display',
    valueField: 'id',
    emptyText: 'Wählen Sie eine Landesmessprogramm',
    // Enable filtering of comboboxes
    queryMode: 'local',
    triggerAction: 'all',
    typeAhead: true,
    minChars: 0,
    layout: 'hbox',

    initComponent: function() {
        this.store = Ext.data.StoreManager.get('messprogrammkategorie');
        if (!this.store) {
            this.store = Ext.create('Lada.store.MessprogrammKategorie');
        }
        else {
            this.store.clearFilter();
        }
        this.callParent(arguments);
    }
});

http://lada.wald.intevation.org