Comments (4)
You are correct, the slider width determines the decimal point increments. I've had more questions about this, so I probably should default to the solution. Simply use this:
Math.round($rentSlide.noUiSlider("getValue")[0])
to get a whole number.
Also note that getValue returns an array, So you can use
Math.round($rentSlide.noUiSlider("getValue")[1])
Instead of
Math.round($rentSlide.noUiSlider("getValue", {point: "upper"}))
I hope this solves your issues. Feel free to ask if you have more questions!
from nouislider.
Thank you! I had searched here and on SO, but hadn't found anything relevant to my question. Where else do you answer questions? I am asking so I can look there first the next time something comes up.
from nouislider.
Works as advertised! I updated the fiddle with your suggestions: http://jsfiddle.net/mm34t/5/
from nouislider.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from nouislider.
Related Issues (20)
- Cannot read properties of undefined (reading 'destroy') HOT 3
- Event when user tries to go beyond padding limits HOT 2
- How to Make noUiSlider Handle Overlap Another? HOT 3
- Slider for height in cm pointing the handler to the right label HOT 2
- nouislider 15.7.1 ignoring start values HOT 3
- Tooltip hiding not working HOT 2
- Weird behaviour and handles moving together on some mobile devices HOT 2
- Adding a prefix-suffix to a tooltip HOT 3
- format being sent NaN when tooltips are hidden HOT 2
- Question: How to make thumbs not overlapping by each other but keep full range functionality HOT 2
- Circular slider? HOT 2
- Youtube toolTip slider HOT 3
- Feature request: allow for connectSlider handles swap (drag handles across each-other and connect between or outside) HOT 2
- Move only by moving the knob HOT 2
- No handle animation when updating slider range HOT 1
- why don't move range cursor whenever click or drag value on line
- sliders not working after upgrading to Angular 16 and nouislider 15.7.1 HOT 4
- File Inclusion Vulnerability via "Include $file" HOT 2
- How to update noUiSlider from the 15.6.1 to latest one HOT 1
- Update connect option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nouislider.