Slider
A slider can be used for choosing from a range of values.
Supported Options
The slider control supports the following options.
Key | Type | Notes |
---|---|---|
| string | The name of the Slider. This will be displayed beside the UI element of RapidWeaver |
| string | The name of the property set by this control. |
| string | Can be used to apply additional formatting to the value. |
| string | The default value the slider should be set to. |
| array | Can be used to specify an array of values to the slider. See code example below. |
| number | The minimum value for the slider. |
| number | The maximum value for the slider. |
| string | The units string appears alongside the slider value in the user interface, but it is not included in the template output value. |
| boolean | If true an integer will be used instead of a floating point. |
| number | the number of ticks that will appear beneath the slider |
Slider Example
You can use the following code as a starting point for a stepped slider with seven values.
The following example has a minimum value of 0 and maximum of 100. The units are set to round, and display in the UI with a "%" after the number.
An example slider setting a star rating between 0 and 5.
Last updated