Add color to grid cells
Is it possible to add color to grid cells?
Not right now, sorry. Are you looking to manually set the color of a single cell? Or would you want the color to change automatically based on a condition, like "if value < 0, make the cell red"?
Based on condition, programmatically
On Sun, Aug 30, 2015, 9:56 PM Tim Shawver [email protected] wrote:
Not right now, sorry. Are you looking to manually set the color of a single cell? Or would you want the color to change automatically based on a condition, like "if value < 0, make the cell red"?
— Reply to this email directly or view it on GitHub https://github.com/quantopian/qgrid/issues/28#issuecomment-136239595.
Same for me, currently I apply something along the lines
df.style.\
applymap(color_dateofbirth, subset=['dateofbirth']).\
applymap(color_sex, subset=['sex'])
which results in the error:
TraitError: The 'df' trait of a QgridWidget instance must be a DataFrame, but a value of class 'pandas.io.formats.style.Styler' (i.e. <pandas.io.formats.style.Styler object at 0x7fbcb87b4e48>) was specified.
@TimShawver Any advancement on this - it will be really helpful?
+1 if we could apply the color based on the column would be helpful.
df.style.applymap() returns Styler obj
qgrid is expecting a dataframe obj.
+1 ...also coloring the toolbar would be awesome, now in JL dark theme it doesn't look that nice...

Hello, any news regarding this?