Skip to main content

getWidget()

returns the DHTMLX Slider widget attached to a Slider control

getWidget(): Slider;

Returns:

An object of the DHTMLX Slider widget.

Example

const slider = form.getItem("slider").getWidget();  
// -> DHTMLX Slider

It is possible to use methods of DHTMLX Slider 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.

const slider = form.getItem("slider").getWidget();  // -> DHTMLX Slider
slider.disable(); // disables slider