layout: {
type: 'vbox',
- align: 'stretch'
+ align: 'stretch',
},
value: 0,
data: {
title: '',
usage: '',
- iconCls: undefined
+ iconCls: undefined,
},
tpl: [
'<div class="left-aligned">',
'<tpl if="iconCls">',
'<i class="{iconCls}"></i> ',
'</tpl>',
- '{title}</div> <div class="right-aligned">{usage}</div>'
- ]
+ '{title}</div> <div class="right-aligned">{usage}</div>',
+ ],
},
{
height: 2,
- border: 0
+ border: 0,
},
{
xtype: 'progressbar',
itemId: 'progress',
height: 5,
value: 0,
- animate: true
- }
+ animate: true,
+ },
],
warningThreshold: 0.6,
updateValue: function(text, usage) {
var me = this;
var label = me.getComponent('label');
- label.update(Ext.apply(label.data, {title: me.title, usage:text}));
+ label.update(Ext.apply(label.data, { title: me.title, usage: text }));
if (usage !== undefined &&
me.printBar &&
me.updateValue(me.text, me.value);
me.setIconCls(me.iconCls);
- }
+ },
});