I have a custom field renderer highlighting the background of a field when its value is < 0…
This works great, except that when there are still unsaved changes on the page the text is still in edit mode, (gold-ish colour) and pretty hard to read. I’ve tried to set the .nx-fieldtext property in the renderer but can’t seem to get it working.
Any ideas on how I can set the .nx-fieldtext property?
var field = argumentsu0], value = argumentsu1];
skuid.ui.fieldRenderersdfield.metadata.displaytype]yfield.mode](field,value);
if (value < 0) {
field.element.css({
'background-color': 'rgb(253,127,127)',
<i>//this is where I would like to set the .nx-fieldtext property</i>
<i> 'color':'black'</i>
});
} else if (value > 0) {
field.element.css({
'background-color': 'rgb(144,228,239)'
});
}