Vanes
Vanes

Reputation: 21

jQuery Knob 0.5 steps?

We want to use jQuery Knob to select values with steps from 0.5 we tried to configure step: .5 but it does not work. In jQuery Slider this does work this way. is it possible to use this also in Knob? What is the syntax for this?

Thanks Marco

Upvotes: 2

Views: 3108

Answers (3)

Rhys
Rhys

Reputation: 2877

I had the same issue, it looks like you are probably using an old version of jquery.knob.js.

Try the version in the lilnk below

https://github.com/Aeon/jQuery-Knob/blob/0a7086e4ff1ecdf4216378a294f9d201c2388390/js/jquery.knob.js

Then you can use data-step="0.5" in your input field.

Upvotes: 1

Johann Combrink
Johann Combrink

Reputation: 703

I changed mine to data-step=0.1 and it works.

<input  class="knob" data-bgcolor="#333" data-fgcolor="#ACD53A" data-thickness=".4" readonly data-step="0.1" value="22.5" />

Upvotes: 5

Magnus
Magnus

Reputation: 424

If you're using this jQuery Knob (http://anthonyterrien.com/knob/) use data-step="0.5" as seen on the 5-digit values, step 1000 demo.

Upvotes: 2

Related Questions