Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cliff on Dec 15, 2009 14:53
open dhtmlx forum
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
Answer posted by Alex (support) on Dec 16, 2009 01:53

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);
})