react-pivot icon indicating copy to clipboard operation
react-pivot copied to clipboard

className

Open rpryde opened this issue 10 years ago • 1 comments

I am currently looking for a way to use conditional styles based on calculation results. value: & template: fields allow the utilization of functions. It would appear that className: does not. That being the case, is there a method you could suggest to achieve this?

rpryde avatar Nov 24 '15 20:11 rpryde

If you're ok with just styling the inside of the cell, here's an example of turning the value either red or green if the number is positive or negative: https://github.com/davidguttman/react-pivot-mean-slides/blob/master/client/no-frills-rg.js#L57

davidguttman avatar Nov 24 '15 20:11 davidguttman