Skip to content

ColorProvider and moving of column #47

@EfimovVladimir

Description

@EfimovVladimir

code to reproduce:

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

Peek 2021-02-03 06-28

expected result: color provider works the same after of moving column

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions