{
from: 1000,
to: 100000,
step: 500, //每次进度数
smooth: true,
round: 0, //小数点后面保留位数
dimension: " $", //单位
skin: "plastic" //样式
}
Slider in string
{
from: 5,
to: 50,
step: 2.5,
round: 1,
dimension: ' €'
}
{
from: 5000,
to: 150000,
heterogeneity: ['50/50000'],
step: 1000,
dimension: ' $'
}
{
from: 0,
to: 500,
heterogeneity: ['50/100', '75/250'],
scale: [0, '|', 50, '|' , '100', '|', 250, '|', 500],//自定义进度尺,底部
limits: false, //头部是否显示数字
step: 1,
dimension: ' m<small>2</small>'
}
{
from: 1,
to: 30,
heterogeneity: ['50/5', '75/15'],
scale: [1, '|', 3, '|', '5', '|', 15, '|', 30],
limits: false,
step: 1,
dimension: '',
skin: "blue" //定义颜色,调用jslider.blue.png图片
}
{
from: 480,
to: 1020,
step: 15,
dimension: '',
scale: ['8:00', '9:00', '10:00', '11:00',
'12:00', '13:00', '14:00', '15:00', '16:00', '17:00'],
limits: false,
calculate: function( value ){
var hours = Math.floor( value / 60 );
var mins = ( value - hours*60 );
return (hours < 10 ? "0"+hours : hours) + ":" + ( mins == 0 ? "00" : mins );
},
onstatechange: function( value ){
console.dir( this );
}
}