I’m new to Skuid and can’t seem to figure out what I’m doing wrong here. I’d like to conditionally render the text color of a field based on the field’s value. This is what I have so far:
var field = arguments 0], value = arguments 1];
skuid.ui.fieldRenderersdfield.metadata.displaytype]field.mode;
if (value < 0) {
field.element.css({
‘color’: ‘rgb(0,128,0)’,
});
} else if (value > 0) {
field.element.css({
‘color’: ‘rgb(255,0,0)’
});
}
If I change ‘color’ to ‘background-color’ the background changes just fine, but I’m trying to change the text color. Any help would be greatly appreciated.