[Slider] Set slider values to int-only
See original GitHub issueIs your feature request related to a problem? Please describe. I have a slider ranging from 0 to 100. If I want the user to be able to set integer values only (not float), I have to set step to 1. But then the slider has way too much “discrete dots”.
Describe the solution you’d like
You could add a flag intOnly
or isDiscrete
, so the user can disable these dots even if a step size is set.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Getting and setting slider values - noUiSlider - Refreshless.com
noUiSlider has an API with two simple methods: .get() and .set() . To get the current slider value: slider.noUiSlider.get();. For one-handle sliders, ...
Read more >slider Reference - Max Documentation
slider is a user interface that resembles a sliding potentiometer. ... Sets value that will be added to the slider object's value before...
Read more >Android sliders with fixed numbers - Stack Overflow
I'm trying to implement a discrete slider with fixed values, but the only thing I can set is the valueFrom, valueTo and stepSize....
Read more >HTML DOM Input Range value Property - W3Schools
The value property sets or returns the value of the value attribute of a slider control. The value attribute specifies the default value...
Read more ><input type="range"> - HTML: HyperText Markup Language
This is typically represented using a slider or dial control rather than a text ... If the value is set to something which...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
android:stepSize=“1” Theres is stepsize to give only int
I open a new issue with the request to drop the dots if they are too much: #1233