🥳  V1.1 is out. 

Check out our new release!

M

Reply To: Column cell styling in tables

Welcome to Taipy Forums Using Taipy Column cell styling in tables Reply To: Column cell styling in tables

#235420
Florian JactaFlorian Jacta
Keymaster

Hi Andrey,

It is strange. The solution works in my environment. This is my complete code in my ‘main.py’:

import pandas as pd
from taipy import Gui

data = pd.DataFrame({“Name”:[“John”,”Mary”,”Bob”],
“Age”:[32,23,40]})

page = “””
<|{data}|table|style[Name]={lambda state, value: “red-cell”}|>
“””

Gui(page).run()

And here is my code in the ‘main.css’:

.red-cell {
background-color: red;
}

I can see on the webpage a red background for the ‘Name’ column as intended. I have tested it on the newest version of Taipy.

I hope this will help you. If it doesn’t, maybe if you could provide your Taipy version, the name of your web browser, and your entire code, we will be able to find out what is happening.

Florian