Mercurial > lada > lada-client
view app/view/widget/Status.js @ 1200:e9efd2edb50f
Add error code for values outside a validity range.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 23 Sep 2016 17:20:22 +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); } });