Toggle dark mode

Hi,

📢 Taipy v2.1 is about to be launched! 🚀 ETA:

Day(s)

:

Hour(s)

:

Minute(s)

:

Second(s)

M

Reply To: Column cell styling in tables

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

#235433
AndhsAndhs
Participant

Hi Florian,

It’s OK now!

Actually, when I first tested column styling, I used “td” in CSS. Indeed, it prevents column styling for some reason.

But in my further experiments I added row styling in the same script, so it looked like:

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”}|>
<|{data}|table|style={lambda state, idx: “red-cell”}|>
“””

Gui(page).run()

Then there are problems with column styling, with or without “td”, but now because of some conflict in style applying between tables, I believe.

So it was all my negligence, no faults with your great framework.

Thank you for your help, really appreciated.

Andrey