I'm using the script editor to format my list. When I use this block of code:
function boldTemplate(ctx){
var value = ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
switch(value){
case "":
return"<span style='background-color:yellow'>"+"testing"+"</span>";
break;
}
}
This will highlight the text "testing" instead of making the whole cell yellow.
If my switch case looked like this:
switch(value){
case "":
return"<span style='background-color:yellow'>"+"</span>";
break;
}
No colour would be displayed at all.
Is there a way to colour the cells?