Disabling slider

Hi, I have a form containing a slider that displays various informations that admins can fill and modify at will. However, standard users should be able to see the form but not change the values in the fields. As such I’m trying to implement a readonly mode where all of my form’s controls will be locked for editing including, of course, the slider. So my question is basically: Can I lock the slider so that its value cannot be changed by the user?

Thanks in advance

Osu

Hi,

you may use disable method:

slider.disable(true);

Thanks a lot for the quick response :slight_smile:. However, it might be worth to note that on this page (basically the list of methods for the slider):

docs.dhtmlx.com/doku.php?id=dhtm … _toc_alpha

This function is not mentioned anywhere. I fail to see why it wouldn’t be the case since this method is clearly part of the API. Maybe I checked on the wrong page, but anyway, thanks again and keep up the good work :slight_smile:.

Osu

This method wasn’t added to the methods list by mistake. We’ll necessarily add it. Thank you for the information.