Integration Toolkit Solutions Wiki

Add Conditional Styling to Perspective Table Data Rows

Add conditional styling, such as font color, background color, etc. based on a cell value

Conditional Row Background Color
forEach(
	{this.custom.data},
	asMap(
		'value', it(), // use asMap(it()) for dataset sources
		'style', asMap('backgroundColor', if(it()['population'] > 1000000, 'red', ''))
	)
)
Features employed

Note that for dataset sources, each row needs to use asMap() for the value key (see expression comments).

2 Likes