Spinner Control Demo (v1.0)

 

Features

View Source (commented)
View Source (compressed)

 

Decimal example

new SpinnerControl('input_id', 'up_arrow_id', 'dn_arrow_id', {interval: 0.1, round: 1});

Integer example



new SpinnerControl('input_id', 'up_arrow_id', 'dn_arrow_id', {
  min: 0, max: 100, suffix: '%'
});

List example

var days = 'Sunday Monday Tuesday Wednesday Thursday Friday Saturday'.split(' ');
new SpinnerControl('input_id', 'up_arrow_id', 'dn_arrow_id', {data: days});