]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - src/panel/InfoWidget.js
InfoWidget: add setData, so that we can bind it
[proxmox-widget-toolkit.git] / src / panel / InfoWidget.js
index 8005fa80e085f8c54fb73468f16e9cb087d6202c..53c2ec733b5cb1c0c270212cbdaf5462b486aa01 100644 (file)
@@ -54,6 +54,10 @@ Ext.define('Proxmox.widget.Info', {
        me.getComponent('label').data.iconCls = iconCls;
     },
 
+    setData: function(data) {
+       this.updateValue(data.text, data.usage);
+    },
+
     updateValue: function(text, usage) {
        var me = this;
        var label = me.getComponent('label');