KWA-MDM/js/ui/Renderers.js

23 lines
696 B
JavaScript
Raw Normal View History

2016-05-11 10:40:44 +02:00
Ext.namespace('Zarafa.plugins.mdm.ui');
/**
* @class Zarafa.plugins.mdm.ui.Renderers
* Methods of this object can be used as renderers for grid panels, to render
* cells in custom format according to data type
* @singleton
*/
Zarafa.plugins.mdm.ui.Renderers = {
/**
* Render the Provisioning Status.
*
* @param {Object} value The data value for the cell.
* @param {Object} p An object with metadata
* @param {Ext.data.record} record The {Ext.data.Record} from which the data was extracted.
* @return {String} The formatted string
*/
provisioningStatus : function(value, p, record)
{
return Zarafa.plugins.mdm.data.ProvisioningStatus.getDisplayName(parseInt(value));
}
}