-
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
How can I disable slider ? #109
Comments
I fixed it with return. Style is the same but it is ok.
|
I did it like this: <Slider
orientation='horizontal'
min={1}
max={5}
labels={this.state.labels}
value={this.state.sliderValue}
onChange={(newValue) => {}}
/> |
React library already provides disable props. You need to make following changes in your code. Make constructor with isDisable state with default false value
Add a function into onChange callback props
Set this.state.isDisable in disable props
|
You can simply add a disabled class as an additional class when you need to disable the slider. Worked for me.
|
If I want to disable my slider, is there any props available for that ?
I update my slider with web-socket.
thanks in advance.
The text was updated successfully, but these errors were encountered: