最近需要做一个滑动条,动态改变地图动画播放的速度。实在没有自己用js写一个的那个水平,于是找到了Ext.Slider,ExtJS的版本是3.3.0。

new Ext.Slider({
id: 'playstep',
width: 100, //进度条长度
increment: 1,
minValue: 1,
maxValue: 6,
clickToChange: true, //允许单击改变进度值 
plugins: new Ext.slider.Tip({
getText: function (thumb) {
return String.format('每秒播放{0}点', thumb.value);
}
}),
listeners: {
'changecomplete': function (slider, newValue) { alert(newValue); } //进度条完成触发 
}
})

  

参考:

Ext.Slider进度条使用  http://hi.baidu.com/jiang_yy_jiang/item/9c2ded376b6d29f22784f4d2

Extjs-Silder的使用     http://pyud123456.blog.163.com/blog/static/85202217200852413610546/

相关文章:

  • 2021-06-09
  • 2022-12-23
  • 2021-07-12
  • 2021-07-19
  • 2021-09-10
  • 2022-12-23
  • 2021-09-23
猜你喜欢
  • 2021-07-02
  • 2022-01-19
  • 2021-08-30
  • 2021-10-07
  • 2021-12-28
  • 2022-12-23
  • 2021-06-18
相关资源
相似解决方案