JQuery Knob display number change

后端 未结 3 854
终归单人心
终归单人心 2020-12-30 15:23

I\'m using JQuery Knob to make some cool graphs and it\'s working perfectly. But I have one problem: I want to make the display number between the graph have a \'%\' symbol

3条回答
  •  长发绾君心
    2020-12-30 15:25

    If you take a quick look at the github repo you'll see that there's a draw hook that's called everytime the canvas is drawn. If you implement that hook you should be able to add whatever you wish to the input. Here's a short example of the functionality you're looking for (to try it: http://jsfiddle.net/eAQA2/ ) and for future reference:

    
    
    
    
    
    
    
    
    

提交回复
热议问题