Search.../

prefix

Sets or gets the prefix of a range slider's value.

Description

You can set a prefix for a range slider's value. For example, you can set a prefix as a type of currency, such as '$'.

Type:

stringRead & Write

Was this helpful?

Get a range slider's value prefix

Copy Code
1let rangeSliderPrefix = $w('#myRangeSlider').prefix; // '$'
Set a range slider's value prefix

Copy Code
1$w('#myRangeSlider').prefix = '$';