Skip to content

Prefixing $ in format function  #220

Open
@chivalrousgaurav

Description

@chivalrousgaurav

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 ;
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions