editor: {
xtype: 'proxmoxWindowEdit',
subject: text,
+ fieldDefaults: {
+ labelWidth: opts.labelWidth || 100
+ },
items: {
xtype: 'proxmoxKVComboBox',
name: name,
editor: {
xtype: 'proxmoxWindowEdit',
subject: text,
+ fieldDefaults: {
+ labelWidth: opts.labelWidth || 100
+ },
items: {
xtype: 'proxmoxtextfield',
name: name,
editor: {
xtype: 'proxmoxWindowEdit',
subject: text,
+ fieldDefaults: {
+ labelWidth: opts.labelWidth || 100
+ },
items: {
xtype: 'proxmoxcheckbox',
name: name,
required: true,
defaultValue: opts.defaultValue,
header: text,
+ renderer: opts.renderer,
editor: {
xtype: 'proxmoxWindowEdit',
subject: text,
+ fieldDefaults: {
+ labelWidth: opts.labelWidth || 100
+ },
items: {
xtype: 'proxmoxintegerfield',
name: name,
return value;
},
+ listeners: {
+ itemkeydown: function(view, record, item, index, e) {
+ if (e.getKey() === e.ENTER) {
+ this.pressedIndex = index;
+ }
+ },
+ itemkeyup: function(view, record, item, index, e) {
+ if (e.getKey() === e.ENTER && index == this.pressedIndex) {
+ this.run_editor();
+ }
+
+ this.pressedIndex = undefined;
+ }
+ },
+
initComponent : function() {
var me = this;