jQRangeSlider icon indicating copy to clipboard operation
jQRangeSlider copied to clipboard

Single sliders possible?

Open lmartins opened this issue 12 years ago • 26 comments

Would love to use this plugin on my project, but i also need single sliders inputs, any plans to support that?

Thanks.

lmartins avatar Dec 12 '12 09:12 lmartins

I've no plan for that. But you can use standard jquery slider.

ghusse avatar Dec 12 '12 09:12 ghusse

Shame, I also need a single slider. jQuery slider doesn't work properly on touch devices.

Maybe just an option to lock the first knob at 0, and hide it?

designbyadrian avatar Jan 18 '13 11:01 designbyadrian

The best way that I can advise to do this is set the default value to 0 and in the css make the left handle display: none. The only issue after that is if the user clicks the bar to move it then the left handle can move that. If you know how to disable the bar sliding on click then that is a work around. I personally don't know how. So just something to ponder.

Maybe add an option to disable the click to move the bar so the user only has the option to use handles/labels and nothing else.

dstone1983 avatar Feb 06 '13 17:02 dstone1983

In my point of view, the best option is to use jquery-ui slider, and modify css to change its look.

ghusse avatar Feb 07 '13 09:02 ghusse

+1

dilrajahdan avatar Feb 07 '14 10:02 dilrajahdan

I agree that this would be useful. I came to ask the same question.

It's not unreasonable that an application would want both range selection and a regular slider selection on the same page. In this case, you would want them to be styled the same, and also have the same options such as fade in/out of labels and so on.

It would be great if this slider could support a single value.

As it is, I guess we can hack it to fix one end at zero, as someone mentioned, and hide the zero label with css.

sfentress avatar Mar 04 '14 14:03 sfentress

Great news: I'm working on it.

It'll simpler and more powerful (at the same time), and will be used as a base for future versions of jQRangeSlider.

Anyone interesting in beta-testing?

ghusse avatar Mar 04 '14 14:03 ghusse

@ghusse, I would! And this is important to me for similar reasons: I'd like to have a single look-and-feel for all sliders, range or single-value.

michaelahlers avatar Mar 09 '14 22:03 michaelahlers

@ghusse missed your previous message. I would also love to test the new version, when it becomes available or as beta tester.

Cheers.

lmartins avatar Mar 10 '14 09:03 lmartins

@ghusse I'm also in need of a single slider and would gladly help in testing.

MBrouns avatar May 12 '14 13:05 MBrouns

I'm also needing a single slider option! ;)

rodrigograca31 avatar May 20 '14 13:05 rodrigograca31

@ghusse how is the single slider option coming and how can I beta test it? Thanks.

martianinteractive avatar Jun 14 '14 08:06 martianinteractive

I'm a bit late on this, I did not work further on it for a while. I'll let you know once it'll be ready.

ghusse avatar Jun 14 '14 10:06 ghusse

Same here. Yes, I could style the jquery-ui slider, but there is always room for a mistake or a difference. If you do still plan to work on this let us know how things are coming along.

themikeb avatar Jul 30 '14 18:07 themikeb

@ghusse kudos on your great work ;) Was wondering about the single value slider tooo .. i guess now we have a lot of fans :D

alaacs avatar Nov 08 '14 09:11 alaacs

I'm aware of that, but at the moment I don't have time to work on it!

ghusse avatar Nov 08 '14 12:11 ghusse

Thanks for the work @ghusse, had any luck with this yet?

DazDotOne avatar Jan 29 '15 17:01 DazDotOne

Hi @ghusse, the daterangeslider is great btw. I would be really interested to know if you have had the time to look into a single point slider?

amjgbr avatar Apr 29 '15 14:04 amjgbr

Nope

ghusse avatar May 04 '15 10:05 ghusse

I thought I could disable 'leftHandle' and 'rightHandle' with 'unbind', but it didn't work. i want to know why..

the best way to come up with was to change css to 'display:none;'. but this causes bugs that the slider handler and the left value labels jump to left before right position...

anqsdwe avatar May 05 '15 03:05 anqsdwe

You cannot. Le 5 mai 2015 5:11 AM, "anqsdwe" [email protected] a écrit :

I thought I could disable 'leftHandle' and 'rightHandle' with 'unbind', but it didn't work. i want to know why..

the best way to come up with was to change css to 'display:none;'. but this causes bugs that the slider handler and the left value labels jump to left before right position...

— Reply to this email directly or view it on GitHub https://github.com/ghusse/jQRangeSlider/issues/66#issuecomment-98919957.

ghusse avatar May 05 '15 05:05 ghusse

I've quickly put something together for a single point slider with dates and added the ability to zoom in too.

To prevent the slide bug on the single point i set the minimum value to the min bound of the slider.

Here is the fiddle - http://jsfiddle.net/andrewjones83/nqn76g0o/

amjgbr avatar May 05 '15 08:05 amjgbr

I understand this is an old thread, however I was wondering if anyone progressed this to the point of having a solution for either locking the left handle or a single slider variant?

datalynk avatar Feb 17 '16 19:02 datalynk

Hello,

Sorry, but no.

On Wed, Feb 17, 2016 at 8:13 PM, Dean Hurley [email protected] wrote:

I understand this is an old thread, however I was wondering if anyone progressed this to the point of having a solution for either locking the left handle or a single slider variant?

— Reply to this email directly or view it on GitHub https://github.com/ghusse/jQRangeSlider/issues/66#issuecomment-185355933 .

ghusse avatar Feb 19 '16 10:02 ghusse

Hello @ghusse, idk if you keep the track of this improvement and if you have a progress in this feature. Anyway, thinking in a possible solution, I came up with this concept:

http://imgur.com/FVdi9Bf

In some cases, when the min and max values are the same, jQRangeSlider keeps both values in the corresponding bubbles, so instead of that, should use only one. Of course, when the slider buttons are merged, only display a single line, but inspired in the "Symmetric positionning" example, when both values are the same, could show two arrows to split them and use a range mode, also could have a gap between the arrows and scroll without problems.

With this concept, maybe can enable jQRangeSlider as single value with adding a boolean option, but, what do you think about it?

joser93 avatar Jun 16 '16 01:06 joser93

Hello,

I did not work on this, because jQueryUI alread has single sliders. As it's a dependency of jQRangeSlider, I do not want to reinvent the wheel.

On Thu, Jun 16, 2016 at 3:58 AM, José Roberto Sánchez < [email protected]> wrote:

Hello @ghusse https://github.com/ghusse, idk if you keep the track of this improvement and if you have a progress in this feature. Anyway, thinking in a possible solution, I came up with this concept:

http://imgur.com/FVdi9Bf

In some cases, when the min and max values are the same, jQRangeSlider keeps both values in the corresponding bubbles, so instead of that, should use only one. Of course, when the slider buttons are merged, only display a single line, but inspired in the "Symmetric positionning" example, when both values are the same, could show two arrows to split them and use a range mode, also could have a gap between the arrows and scroll without problems.

With this concept, maybe can enable jQRangeSlider as single value with adding a boolean option, but, what do you think about it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ghusse/jQRangeSlider/issues/66#issuecomment-226369159, or mute the thread https://github.com/notifications/unsubscribe/AAgLjdBqoP7gU9vMp_kKldjEJWDihSHTks5qMK2ygaJpZM4AT0-x .

ghusse avatar Jun 20 '16 07:06 ghusse