touchspin-demo.js 811 B

123456789101112131415161718192021222324252627282930313233343536
  1. $(function() { "use strict";
  2. $("input[name='touchspin-demo-1']").TouchSpin({
  3. min: 0,
  4. max: 100,
  5. step: 0.1,
  6. decimals: 2,
  7. boostat: 5,
  8. maxboostedstep: 10,
  9. postfix: '%'
  10. });
  11. });
  12. $(function() { "use strict";
  13. $("input[name='touchspin-demo-2']").TouchSpin({
  14. min: -1000000000,
  15. max: 1000000000,
  16. stepinterval: 50,
  17. maxboostedstep: 10000000,
  18. prefix: '$'
  19. });
  20. });
  21. $(function() { "use strict";
  22. $("input[name='touchspin-demo-3']").TouchSpin({
  23. verticalbuttons: true
  24. });
  25. });
  26. $(function() { "use strict";
  27. $("input[name='touchspin-demo-4']").TouchSpin({
  28. verticalbuttons: true,
  29. verticalupclass: 'glyph-icon icon-plus',
  30. verticaldownclass: 'glyph-icon icon-minus'
  31. });
  32. });