You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The format function works fine if you have to suffix anything like %, but if you prefix anything it breaks the code and you can no longer use mouse scroll to control the knob.
I believe this is very similar to another issue I fixed, with commas in the formatted value. See pull request #318. You would just need to update the code I added to remove anything except numbers before parsing.
The format function works fine if you have to suffix anything like %, but if you prefix anything it breaks the code and you can no longer use mouse scroll to control the knob.
I used this:
$(".dial").knob({
'min': 1
,'max':500,
format: function(v) {
return "$" + v ;
}
});
The text was updated successfully, but these errors were encountered: