]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - grid/ObjectGrid.js
add labelWidth to the fieldDefaults in add_*_row
[proxmox-widget-toolkit.git] / grid / ObjectGrid.js
index 8ac005fc709498d6ee83f94bc2dfd77db2c5bf82..bd294c8f6c1fc414b8dea3bd4e0d55a253b61a0f 100644 (file)
@@ -38,6 +38,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
            editor: {
                xtype: 'proxmoxWindowEdit',
                subject: text,
+               fieldDefaults: {
+                   labelWidth: opts.labelWidth || 100
+               },
                items: {
                    xtype: 'proxmoxKVComboBox',
                    name: name,
@@ -67,6 +70,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
            editor: {
                xtype: 'proxmoxWindowEdit',
                subject: text,
+               fieldDefaults: {
+                   labelWidth: opts.labelWidth || 100
+               },
                items: {
                    xtype: 'proxmoxtextfield',
                    name: name,
@@ -95,6 +101,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
            editor: {
                xtype: 'proxmoxWindowEdit',
                subject: text,
+               fieldDefaults: {
+                   labelWidth: opts.labelWidth || 100
+               },
                items: {
                    xtype: 'proxmoxcheckbox',
                    name: name,
@@ -124,6 +133,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
            editor: {
                xtype: 'proxmoxWindowEdit',
                subject: text,
+               fieldDefaults: {
+                   labelWidth: opts.labelWidth || 100
+               },
                items: {
                    xtype: 'proxmoxintegerfield',
                    name: name,