tb / ng2-nouislider

Angular2 noUiSlider directive
http://tb.github.io/ng2-nouislider/
MIT License
185 stars 114 forks source link

I need different ranges for minimum and maximum range #210

Closed gajerajimesh closed 5 years ago

gajerajimesh commented 5 years ago

We have used slider for one of my client and they need different ranges for minimum and maximum knobs like mentioned below,

Left knob of the slider can be set to any of the low values : 2, 6, 9, 12, 15, 18, 21, 25, 30, 35, 40, 45, 50, 55, 65+ Right knob of the slider can be set to any of the high values: 5, 8, 11, 14, 17, 20, 24, 29, 34, 39, 44, 49, 54, 64, 65+

Could you please suggest me, How we can implement that?

tb commented 5 years ago

Please check nouislider documentation, i.e. https://refreshless.com/nouislider/slider-values/#section-snap

gajerajimesh commented 5 years ago

@tb, I need different range of minimum and maximum. snap is not a solution for me. Could you please again review my question and provide me possible solution for the same.