I added a table widget and connected it with a table in a dashboard. I want to format select cell values. I'm think I could manage this with Arcade, similar to what's below. Is there a way to handle this table formatting in a dashboard?
var bld = Concatenate('<strong>'+$feature.LT2_Difference+'</strong>')
# Format where values are less than or equal to -1
var val = When($feature.LT2_Difference <= -1, bld, $feature.LT2_Difference);
return{
LT2_Difference: {
displayText : val,
textColor: '',
backgroundColor: '#e0e0e0',
textAlign: 'left',
iconName: '',
iconAlign: '',
iconColor: '',
iconOutlineColor: ''
}
}