Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

How can I pass a custom step value to the slider? #376

Answered by andreruffert
graf-andreev asked this question in Q&A
Discussion options

You must be logged in to vote

@graf-andreev based on the docs the step option is not supported that's why your described code above is not working.

Have a look at this codepen.

It describes an approach of value mapping. In your case this would look something like this:

<input type="range" min="0" max="3" step="1" value="0">
const valueMapping = [15, 30, 60, 90]

✌️

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andreruffert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants