| Project owner: | ?-- |
|---|---|
| since: | V1.2 |
This widget is the same as dijit.form.NumberSpinner, but for the time component of a date object instead.
- The down and up arrow buttons "spin" the time up and down.
- Furthermore, when you hold down the buttons, the spinning accelerates to make coarser adjustments easier.
dojo.require("dojox.form.TimeSpinner");
dojo.ready(function(){
var s = new dojox.form.TimeSpinner({
required: true,
smallDelta: 1,
largeDelta: 30
}, "timespinner");
});
<input type="text" id="spinner" />
dojo.require("dojox.form.TimeSpinner");
<input type="text" data-dojo-type="dojox.form.TimeSpinner" value="12:45" />