Change field label background color in field editor

  • 1
  • Question
  • Updated 2 years ago
I have the following field render that changes the background color of a field in a field editor. I also need to change the background of the label. Is that possible using a custom renderer?

var field = arguments[0],    value = arguments[1],
    $ = skuid.$;
var PriorityColor = field.row.PriorityColor__c;

if(field.metadata.accessible){
   field.element.css({'color': 'white', 'background-color': PriorityColor,'min-height':'10px'});
   skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field,value);
}


Photo of Brayden Smith

Brayden Smith

  • 1,078 Points 1k badge 2x thumb

Posted 2 years ago

  • 1

Be the first to post a reply!