-
Notifications
You must be signed in to change notification settings - Fork 236
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
Support color changing on slider change #54
Comments
asaf
changed the title
Support color changing during slider change
Support color changing on slider change
Apr 9, 2017
@asaf Could you post an example the above mentioned use case? |
@whoisandy I described a use case in the issue, this patch let you change any fill style during rendering, code example to extract a color from a palette based on the current slider's value: render() {
const {value} = this.state
const fillStyle = {'backgroundColor': COLORS[value]}
return (
<RangeSlidervalue={value} fillStyle={fillStyle}/>
)
} |
@whoisandy ping? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
How hard would it be to support changing the color on slider value change?
For example starting green towards red color for severity indication,
Thanks.
The text was updated successfully, but these errors were encountered: