define('application/formatters/channellist', [
'antie/iterator',
'antie/runtimecontext',
'application/formatters/epgasset'
], function (
Iterator,
RuntimeContext,
EpgFormatter
) {
'use strict';
var layout = RuntimeContext.getCurrentApplication().getLayout().asset.epg;
return EpgFormatter.extend({
/**
* Formats the widget.
*
* @param {Object|Iterator} item - The item.
* @param {Object} [asset] - The asset item to be updated.
* @returns {Object} - The formatted widget.
*/
format: function format (item, asset) {
var formatParams = {
width: layout.width,
height: layout.height,
progressbar: true,
topLeftText: item.getChannel().getNumber(),
bottomRightIcon: true,
asset: asset,
imageDimension: {
width: layout.image.width,
height: layout.image.height
}
};
return format.base.call(this, item, formatParams);
}
});
});