-
-
Notifications
You must be signed in to change notification settings - Fork 497
Define array of values to be used as steps. #163
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
Comments
The fun fact is that I was actually thinking about this something like 5 hours ago :D |
Nice! |
OK, what's your opinion on it? |
I agree it should be added to the list of options, after the refactoring. |
Actually, I was refering to your opinion abour the PR. ^^ I already have ideas for the implementation of |
I have started to implement it, it's pretty easy with the new version. Do you think it should be possible to give a custom translate function when providing a steps-array? As far as I think, I don't see a valid use case for it. In my current implementation, the internal translate function just returns the correct step from the array. |
This is to ease to use of non linear/number steps. As suggested in #163
Will be in 2.0.0 release. |
This is to ease to use of non linear/number steps. As suggested in #163
Sorry for the delay. |
Sometimes I want to use a range with a non-linear list of steps.
Say I have a range from 0 to 60, and instead of equally sized steps, I want to step 5 by 5 until 30, and then 10 by 10 until 60.
I could manually define an array with these values: [5, 10, 15, 20, 25, 30, 40, 50].
There is a fork of an old version that does this, with a
rz-slider-step-array
option: https://github.com/hrishi1183/angular-slider-custom-rzslider-Demo here: http://plnkr.co/edit/sUFdW4lulu2NQBvn9fq0?p=preview
The text was updated successfully, but these errors were encountered: