comparison app/view/grid/Status.js @ 799:ad24af3fcf89

created StatusWerte Store to correctly display textual representation of a Status in a MessungenGrid
author Dustin Demuth <dustin@intevation.de>
date Thu, 21 May 2015 15:54:25 +0200
parents 9ab7b1eed9f8
children fab0b7be5aca
comparison
equal deleted inserted replaced
798:ff4330d4aba1 799:ad24af3fcf89
42 } 42 }
43 } 43 }
44 }); 44 });
45 this.plugins = [this.rowEditing]; 45 this.plugins = [this.rowEditing];
46 46
47 var statusStore = Ext.create('Ext.data.Store', { 47 var statusStore = Ext.create('Lada.store.StatusWerte');
48 fields: ['display', 'id'],
49 data: [{
50 display: 'unbekannt', id: 0
51 }, {
52 display: 'nicht vergeben', id: 1
53 }, {
54 display: 'plausibel', id: 2
55 }, {
56 display: 'nicht repräsentativ', id: 3
57 }, {
58 display: 'nicht plausibel', id: 4
59 }]
60 });
61 this.dockedItems = [{ 48 this.dockedItems = [{
62 xtype: 'toolbar', 49 xtype: 'toolbar',
63 dock: 'bottom', 50 dock: 'bottom',
64 items: ['->', { 51 items: ['->', {
65 text: 'Hinzufügen', 52 text: 'Hinzufügen',

http://lada.wald.intevation.org