23 lines
696 B
JavaScript
23 lines
696 B
JavaScript
|
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));
|
||
|
}
|
||
|
}
|