Ext.define('PMG.dashboard.MailProcessing', { extend: 'Ext.panel.Panel', xtype: 'pmgMailProcessing', setData: function(data) { var me = this; me.down('#ptime').update(data); me.down('#traffic').update(data); }, layout: { type: 'hbox', align: 'center', pack: 'center' }, defaults: { xtype: 'box', flex: 1, style: { 'text-align':'center' } }, items: [ { itemId: 'traffic', data: { 'bytes_in': 0, 'bytes_out': 0 }, tpl: [ '
{bytes_in} | ',
'' + PMG.Utils.format_rule_direction(0) + ' | ', '
{bytes_out} | ',
'' + PMG.Utils.format_rule_direction(1) + ' | ', '