Hi all! I am currently working on restyling a table such that rows would have a red background conditionally. I am using the method outlined here: Changing colour of row based off value in cell in perspective table - #2 by cmallonee
While this method is working in general, my table does have some columns rendered as views. With the new data structure provided by this method (i.e., value and style properties for each piece of data), data is not properly being passed in to my embedded views. What can I do to mitigate the issue?
My previous data structure was along the lines of the below:
[{
'value1': value,
'value2': value
},
...]
With the changes, it now looks like this:
[{
'value1': {
'value': value,
'style': { 'backgroundColor': '#FF0000' }
},
'value2': {
'value': value,
'style': { 'backgroundColor': '#FF0000' }
}
},
...]