Skip to main content

getWidget()

returns the dhtmlxSlider widget attached to a Slider control

getWidget(): Slider;

Returns:

An object of the dhtmlxSlider widget.

Example

var slider = form.getItem("slider").getWidget();  // -> dhtmlxSlider

It is possible to use methods of dhtmlxSlider via the getWidget() method of a Slider control.

For example, you can disable a Slider control. To do this, you need to get the widget attached to the Slider control and then use the disable() method of this widget.

var slider = form.getItem("slider").getWidget();  // -> dhtmlxSliderslider.disable(); // disables slider