WebApplication/Admin/Js/ichartjs/plugin/ichart.slider.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @overview the slider componment
* @component#iChart.Slider
* @extend#iChart.Component
*/
iChart.Slider = iChart.extend(iChart.Component, {
configure : function() {
/**
* invoked the super class's configuration
*/
iChart.Slider.superclass.configure.apply(this, arguments);
/**
* indicate the component's type
*/
this.type = 'slider';
this.set({
height : 50,
margin : 30,
slider : {
width : 20,
height : 20,
border : {
enable:true,
color:'#aaaaaa',
width:1,
radius : 4
},
background_color : '#eaeaea'
},
border:{
color:'#6fcef6'
},
slider_margin_bottom:4,
axis:{
height : 6,
background_color : '#3391ba'
},
value : {
left : 40,
right : 100
},
background_color:'#fefefe',
minSliderDistance : 60,
onPositionChanged : function(changeToValue) {
//console.log('left = ' + changeToValue.left + ',right = ' + changeToValue.right);
},
touchFaultTolerance : 10
});
this.registerEvent();
},
setLeft: function (x) {
if (x < 0){
x = 0;
}else if (this.right - x < this.minSliderDistance){
x = this.right - this.minSliderDistance;
}
this.left = x<0?0:x;
this.value.left = this.left * 100 /this.width;
后面还有 216 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
