Hello, experimenting with Appsmith and looking for some styling help. I’m trying to change the colour of the text inside a table cell based on certain criteria. Is the JS for Text Color meant to be used like this?
I have similar issue, basically I have 2 tables with 2 columns(key & values) but the keys are not in order, because sometimes 2 table have more or less keys so the order matching will change.
Now issue is I like to compare 2 tables values with keys, if 2nd Table have matching key with different value then I need to highlight the background.
my sample code :
{{(function(){
if(Object.hasOwn(api1.data.object1, currentRow.Brandkey)){
const val1 = api1.data.object1[currentRow.Brandkey];
currentRow.Value == val1 ? ‘transparent’ : ‘red’;
}
})()}}