2

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

Vertexwahn
  • 7,709
  • 6
  • 64
  • 90
Vanes
  • 21
  • 1
  • 2

3 Answers3

5

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" />
Johann Combrink
  • 692
  • 8
  • 18
2

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.

Magnus
  • 391
  • 1
  • 7
  • 35
  • i tried using 0.5 on this demo, it still uses default value of 1 for the steps. – Vanes Jul 02 '13 at 13:09
  • You can not have decimal-steps yet, sorry. https://github.com/aterrien/jQuery-Knob/pull/34 - There's no solution for this but getting a new plugin. – Magnus Jul 02 '13 at 13:12
1

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.

Rhys
  • 2,807
  • 8
  • 46
  • 68