react-pivot
react-pivot copied to clipboard
className
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?
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