mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-29 20:43:29 +00:00
InfoWidget: add setData, so that we can bind it
with a setData function that calls our updateValue, we can now use viewModel bind to update those widgets Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
4b44709a83
commit
0f687dd7b5
@ -54,6 +54,10 @@ Ext.define('Proxmox.widget.Info', {
|
|||||||
me.getComponent('label').data.iconCls = iconCls;
|
me.getComponent('label').data.iconCls = iconCls;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
setData: function(data) {
|
||||||
|
this.updateValue(data.text, data.usage);
|
||||||
|
},
|
||||||
|
|
||||||
updateValue: function(text, usage) {
|
updateValue: function(text, usage) {
|
||||||
var me = this;
|
var me = this;
|
||||||
var label = me.getComponent('label');
|
var label = me.getComponent('label');
|
||||||
|
Loading…
Reference in New Issue
Block a user