initial commit
This commit is contained in:
23
js/ui/Renderers.js
Normal file
23
js/ui/Renderers.js
Normal file
@ -0,0 +1,23 @@
|
||||
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));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user