question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Slider] Set slider values to int-only

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
xitizecommented, Apr 14, 2020

android:stepSize=“1” Theres is stepsize to give only int

0reactions
mueller-macommented, Apr 22, 2020

I open a new issue with the request to drop the dots if they are too much: #1233

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found