change background color of single cell in data table #5480
-
Hi, I want to be able to change the background color of a single cell in a data table. I already see this effect, when hovering over the cells: I see that below the mouse pointer, a "half-bright" color will show and, when pressing the mouse button, the cell stays highlighted. The yellow cell marks the position where I clicked using the mouse. And the green cell marks my current mouse position. There are some posts about changing the Are there possibilities to style cell backgrounds programmatically? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Why doesn't it work with string values? |
Beta Was this translation helpful? Give feedback.
I think you can use Text objects, but you will need to convert your floats to strings. Try adding cells like this:
Text("3.14", style="on blue")