I would like to change the color and text size of a calculated column in a SharePoint 2013 not based on any condition.
Searching online I have only been able to to find ways of applying conditional formatting but don't have the experience to modify the JS to suit my needs.
I am using the JS Link method.
CSS seems not be an option because it will effect other lists on my page.
Any help would be much appreciated.
Updates:
Code I am using:
SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", function() {
SPClientTemplates.TemplateManager.RegisterTemplateOverrides({
OnPostRender: function(ctx) {
var rows = ctx.ListData.Row;
for (var i = 0; i < rows.length; i++) {
var status = rows[i]["Aplus"]; //Replace with your column name
var rowId = GenerateIIDForListItem(ctx, rows[i]);
var row = document.getElementById(rowId);
//To Change the Background color of complete row
row.style.backgroundColor = "#FFFF00"; //Yellow Color - You can change the color according to your requirements.
}
}
});
});