1
有人可以幫我滑塊。什麼改變或添加,所以我有步驟5,並只允許整數?目前,當我上下滑動步驟i約3.6時。如何從某個函數設置滑塊的值?什麼改變或添加到滑塊,所以我有步進運動5
<script type="text/javascript">
dojo.require("dijit.form.Slider");
dojo.require("dijit.form.TextBox"); // this we only include to make the textinput look prettier
dojo.addOnLoad(function() {
var vertical = dojo.byId("vertical");
var rulesNode = document.createElement('div');
vertical.appendChild(rulesNode);
var sliderRules = new dijit.form.VerticalRule({
count: 24,
style: "width:5px;"
},
rulesNode);
var slider = new dijit.form.VerticalSlider({
name: "vertical",
value: 0,
minimum: 1440,
maximum: 0,
pageIncrement:100,
showButtons:true,
slideDuration:288,
intermediateChanges:false,
style: "height:450px;",
onChange: function(value) {
dojo.byId("sliderValue").value = value;
}
},
vertical);
});
</script>