view app/view/widget/Status.js @ 1195:39d98891881c

Add missing requirement.
author Tom Gottfried <tom@intevation.de>
date Tue, 13 Sep 2016 12:49:44 +0200
parents 85acec6c6e6a
children 38599f18c863
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.
 */

var statuswerteStore = Ext.create('Ext.data.Store', {
    fields: ['id', 'wert'],
    data: [{
        'id': 1,
        'wert': 'plausibel'
    }, {
        'id': 2,
        'wert': 'nicht repräsentativ'
    }, {
        'id': 3,
        'wert': 'nicht plausibel'
    }, {
        'id': 4,
        'wert': 'Rückfrage'
    }, {
        'id': 7,
        'wert': 'nicht lieferbar'
    }, {
        'id': 8,
        'wert': 'zurücksetzen'
    }]
});

/**
 * Combobox for Statuswert
 */
Ext.define('Lada.view.widget.Status', {
    extend: 'Lada.view.widget.base.ComboBox',
    alias: 'widget.statuswert',
    store: statuswerteStore,
    displayField: 'wert',
    valueField: 'id',
    emptyText: 'Wählen Sie einen Status',
    // Enable filtering of comboboxes
    autoSelect: false,
    queryMode: 'local',
    triggerAction: 'all',
    typeAhead: false,
    minChars: 0,

    initComponent: function() {
        this.callParent(arguments);
    }
});

http://lada.wald.intevation.org