Please report issues and feel free to make feature suggestions as well.
- add
useBootstrap
option, which istrue
by default.true
: use bootstrap themes, withform-control
,input-group-addon
featuresfalse
: with noform-control
,input-group-addon
, therefore, you can set spinner's up and down button by youself
$("input[class='count']").TouchSpin({
initval: 0,
min:0,
max:100,
useBootstrap: false, // to active custimze mode
buttondown_class:'spinner-down', // your own spinner down button's css
buttonup_class:'spinner-up', // your own spinner up button's css
buttonup_txt:'<img src="images/add.png" />', // change '+' to image
buttondown_txt:'<img src="images/cut.png" />' // change '-' to image
});
Here is the example:
Apache License, Version 2.0