Tuesday, July 21, 2015

Updating the view to have ID field as bold using Link to JS file

(function () {
var overrideCtx = {};
overrideCtx.Templates = {};
overrideCtx.Templates.Fields = {
'ID': { 'View' : EditorField}
};
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
})();

function EditorField(ctx) {
var retVal='';
retVal="<b>" + ctx.CurrentItem.ID + "</b>";
return retVal;
}

No comments:

Post a Comment