Hello,
Can you explain me how to disable a slider view component ?
Hello,
Can you explain me how to disable a slider view component ?
Does someone have some information about this open point ?
Hello,
there is not a ready functionality to disable slider. But you may try to use events as workaround:
[code]var disMove,disCLick;
function disable(sliderId){
var value = $$(sliderId).getValue();
disMove = $$(sliderId).attachEvent(“onTouchMove”,function(){
this.callEvent(“onTouchEnd”,[])
});
disCLick = $$(sliderId).attachEvent(“onItemClick”,function(){
dhx.delay(function(){
$$(sliderId).setValue(value);
})
})
}
function enable(sliderId){
if(disMove&&disCLick){
$$(sliderId).detachEvent(disMove);
$$(sliderId).detachEvent(disCLick);
}
}
[/code]
Thanks you Alexandra
Have a nice week end