Search.../

value

Sets or gets the value of the slider.

Description

Sets or gets the value of the slider. value is not bound by the min or max values set for the slider.

Note: Changing an element's value in code does not trigger an onChange event.

Type:

numberRead & Write

Was this helpful?

Get a slider's value

Copy Code
1let sliderValue = $w("#mySlider").value; // 46
Set a slider's value

Copy Code
1$w("#mySlider").value = 46;