[pve-devel] [PATCH proxmox-widget-toolkit] ObjectGrid: add_text_row: allow setting vtype for editor

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Dec 6 14:37:28 CET 2017


Allow setting a validation type for the editors text field

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 grid/ObjectGrid.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/grid/ObjectGrid.js b/grid/ObjectGrid.js
index 97bfc19..5e67374 100644
--- a/grid/ObjectGrid.js
+++ b/grid/ObjectGrid.js
@@ -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
 		}
 	    }
-- 
2.11.0





More information about the pve-devel mailing list