Disable slider

Ho do i disable a slider?

In want to be able to stop people moving it

I tried setStep(0) but this didn’t seem to work

thanks

cliff


You can try to attach onChange event handler. The function should set the default value:


var value = slider.getValue();


slider.attachEvent(“onChange”,function(newValue){


slider.setValue(value);
})