[Lada-commits] [PATCH 1 of 4] Added GridEditor Plugin

Wald Commits scm-commit at wald.intevation.org
Thu Dec 10 09:29:15 CET 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1449586706 -3600
# Branch stammdatengrids
# Node ID d8b0b23047b1ead168420e962ce358407e8980c8
# Parent  2c394e72ba4119a6beb80251088997875400a655
Added GridEditor Plugin

diff -r 2c394e72ba41 -r d8b0b23047b1 app/view/grid/DatensatzErzeuger.js
--- a/app/view/grid/DatensatzErzeuger.js	Fri Dec 04 15:29:04 2015 +0100
+++ b/app/view/grid/DatensatzErzeuger.js	Tue Dec 08 15:58:26 2015 +0100
@@ -30,6 +30,14 @@
         var i18n = Lada.getApplication().bundle;
         this.emptyText = i18n.getMsg('de.emptyGrid');
 
+        this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
+            clicksToMoveEditor: 1,
+            autoCancel: false,
+            disabled: false,
+            pluginId: 'rowedit'
+        });
+        this.plugins = [this.rowEditing];
+
         // TODO: Which docked Items are required?
         this.dockedItems = [{
             xtype: 'toolbar',
@@ -70,6 +78,12 @@
                 allowBlank: false
             }
         }, {
+            header: i18n.getMsg('bezeichnung'),
+            dataIndex: 'bezeichnung',
+            editor: {
+                xtype: 'textfield'
+            }
+        }, {
             header: i18n.getMsg('mstId'),
             dataIndex: 'mstId',
             renderer: function(value) {
diff -r 2c394e72ba41 -r d8b0b23047b1 app/view/grid/MessprogrammKategorie.js
--- a/app/view/grid/MessprogrammKategorie.js	Fri Dec 04 15:29:04 2015 +0100
+++ b/app/view/grid/MessprogrammKategorie.js	Tue Dec 08 15:58:26 2015 +0100
@@ -30,6 +30,14 @@
         var i18n = Lada.getApplication().bundle;
         this.emptyText = i18n.getMsg('mk.emptyGrid');
 
+        this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
+            clicksToMoveEditor: 1,
+            autoCancel: false,
+            disabled: false,
+            pluginId: 'rowedit'
+        });
+        this.plugins = [this.rowEditing];
+
         // TODO: Which docked Items are required?
         this.dockedItems = [{
             xtype: 'toolbar',
diff -r 2c394e72ba41 -r d8b0b23047b1 app/view/grid/Probenehmer.js
--- a/app/view/grid/Probenehmer.js	Fri Dec 04 15:29:04 2015 +0100
+++ b/app/view/grid/Probenehmer.js	Tue Dec 08 15:58:26 2015 +0100
@@ -30,6 +30,14 @@
         var i18n = Lada.getApplication().bundle;
         this.emptyText = i18n.getMsg('pn.emptyGrid');
 
+        this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
+            clicksToMoveEditor: 1,
+            autoCancel: false,
+            disabled: false,
+            pluginId: 'rowedit'
+        });
+        this.plugins = [this.rowEditing];
+
         // TODO: Which docked Items are required?
         this.dockedItems = [{
             xtype: 'toolbar',


More information about the Lada-commits mailing list