]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
ObjectGrid: add_text_row: allow setting vtype for editor
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 Dec 2017 13:37:28 +0000 (14:37 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Thu, 7 Dec 2017 11:00:27 +0000 (12:00 +0100)
Allow setting a validation type for the editors text field

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
grid/ObjectGrid.js

index 97bfc19dd05aa5dbbf63e7b56c1be1533d083a59..5e6737429e2bbf0a747b47847b54ac2f6565b94f 100644 (file)
@@ -74,6 +74,7 @@ Ext.define('Proxmox.grid.ObjectGrid', {
                    emptyText: opts.defaultValue,
                    labelWidth: Proxmox.Utils.compute_min_label_width(
                        text, opts.labelWidth),
+                   vtype: opts.vtype,
                    fieldLabel: text
                }
            }