Row color change in power table

Hi ,

I am trying to update each row based one column value.
my code

	if colIndex == 0:
		if "Communication" in value:
			 	return {'background': 'red'}
		else:
			return {'background': 'yellow'}

output

i want to update same color in second column also

please help me out

Try this

if "Communication" in self.data.getValueAt(rowIndex,0):
	return {'background': 'red'}
else:
	return {'background': 'yellow'}
2 Likes