Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

className #28

Open
rpryde opened this issue Nov 24, 2015 · 1 comment
Open

className #28

rpryde opened this issue Nov 24, 2015 · 1 comment

Comments

@rpryde
Copy link

rpryde commented Nov 24, 2015

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?

@davidguttman
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants