X-Git-Url: https://git.proxmox.com/?p=proxmox-widget-toolkit.git;a=blobdiff_plain;f=src%2Fpanel%2FInfoWidget.js;h=53c2ec733b5cb1c0c270212cbdaf5462b486aa01;hp=8005fa80e085f8c54fb73468f16e9cb087d6202c;hb=0f687dd7b5bf89a7eb7ba14ab83ebd47f141e0c8;hpb=4b44709a83bdcf371b8122b7f7db7dc0b605dbe7 diff --git a/src/panel/InfoWidget.js b/src/panel/InfoWidget.js index 8005fa8..53c2ec7 100644 --- a/src/panel/InfoWidget.js +++ b/src/panel/InfoWidget.js @@ -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');