slider
Use the slider component to select a numeric value within a defined range by dragging a thumb control.
Typical use cases include price ranges, quantity selection, thresholds, and score inputs.

Configuration options
Some properties are common to all components, see Common component properties for a list and their configuration options.
instanceId
The unique identifier for the slider component.
label
Provide a label/name for the slider input. Label is displayed above the slider.
minimum
Sets the minimum numeric value of the slider range.
maximum
Sets the maximum numeric value of the slider range.
step
Defines the increment between valid slider values. For example, step: 5 allows values in increments of five.
color
Sets the color of the slider track and thumb. Color conditions using the when property enable dynamic color options. The first condition evaluated to true will be used.
displayValue
Controls the value overlay shown for the selected slider value. You can configure formatting, hide the value, set subtle styling, or show custom value text.
errorText
Add text, string, or expressions to show text under the slider indicating an error or invalid value. ErrorText is shown in isNegative styling.
helperText
Add text, strings, or expressions to guide users by displaying text beneath the slider. HelperText is displayed only when there is no errorText property set.
initialValue
The value the slider will load with when the screen initially loads. Use this to preset a default position on the slider.
isHidden
If true the slider will be hidden. If set to false the field will be shown.
isIgnored
When true, the field will be ignored during data save, and the slider value will not be stored. This property is only applied when using the submit-form action.
isRequired
Set to true when the field is required, which is indicated by a grey asterisk. Set to false, the slider is optional.
leftElement
Add a visual context element to the left of the slider. Supported element types are icon or text.
rightElement
Add a visual context element to the right of the slider. Supported element types are icon or text.
style
The following property setting is available:
isDisabled- makes the slider read-only.
value
The value to show for the slider. This is typically a numeric value representing the selected position. This can be combined with the isDisabled style to preset a value that cannot be changed.
onChange
The action is triggered when the value in the slider is changed. Use IntelliSense (ctrl+space) to see the list of available actions.
=@ctx.component.state.
value
State is the variable of the component.
Considerations
The slider supports gesture-based interaction by dragging the thumb control left or right.
The selected value must stay within the configured
minimumandmaximumrange.Use the
stepproperty to control how precisely users can select values.The component supports haptic feedback when values change.
The display value overlay is useful when the current value needs to remain visible while dragging.
Examples and code snippets
Basic slider

Basic example of a slider configured with a numeric range from 0 to 1000. The selected value is shown as a formatted currency amount in the value overlay.
Examples:
See the full example in GitHub.
Slider in a form
In this example, the slider is used in a form to capture budget values. The display values are formatted as currency so the selected amount is easy to read while dragging. Each slider is configured with an initialvalue.
Examples:
See the full example in GitHub.

Slider with conditional color
This example uses color conditions to visually indicate low and high temperature values on the slider. The value is written to the entity field. Examples:
See the full example in GitHub.

Last updated
Was this helpful?