mapListColorProvider = [
{"a": 1, "b": 2, "c": 3},
{"a": 4, "b": 5, "c": 6},
{"a": 7, "b": 8, "c": 5}
]
table56 = TableDisplay(mapListColorProvider)
def color_provider(row, column, td):
row = td.values[row]
val = row[column]
if val == 5:
return Color.GREEN
return Color.BLACK
table56.setFontColorProvider(color_provider)
table56
code to reproduce:
expected result: color provider works the same after of moving column