]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
KVComboBox: add setComboItems function
authorOguz Bektas <o.bektas@proxmox.com>
Thu, 11 Jul 2019 12:54:06 +0000 (14:54 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Jul 2019 13:00:14 +0000 (15:00 +0200)
this allows to change the comboItems of a KVComboBox on the run

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
form/KVComboBox.js

index 0970fcfbc2221a23cc8ab77b3a312141db786c46..5e76f6f024f83f8b1e439d99873e27f381657995 100644 (file)
@@ -71,5 +71,12 @@ Ext.define('Proxmox.form.KVComboBox', {
        }
 
        me.callParent();
+    },
+
+    setComboItems: function(items) {
+       var me = this;
+
+       me.getStore().setData(items);
     }
+
 });