Skip to content
Discussion options

You must be logged in to vote

Hi @asdf77449212-art .

I think I see the issue. Here is a shorter, working example:

import pandas as pd
import taipy.gui.builder as tgb
from taipy.gui import Gui, State

df = pd.DataFrame(
    {
        "id": [1, 2, 3, 4, 5, 6, 7, 8],
        "status": ["primary", "secondary", "error", "warning", "success", "primary", "secondary", "error"],
    }
)


def cell_class_status(state: State, value, index, row, column_name):
    if value == "primary":
        return "bg-primary"
    elif value == "secondary":
        return "bg-secondary"
    elif value == "error":
        return "bg-error"
    elif value == "warning":
        return "bg-warning"
    elif value == "success":
        return "bg-s…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@asdf77449212-art
Comment options

Answer selected by arcanaxion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants