Skip to content

SiSliderComponent documentation

import { SiSliderComponent } from '@siemens/element-ng/slider';

Input Properties

Name Type Default Description
decrementLabel
TranslatableString $localize`:@@SI_SLIDER.DECREMENT:Decrement`

Text for aria-label of decrement. Needed for a11y.

disabled
boolean false
errormessageId
string `${this.id()}-errormessage`

This ID will be bound to the aria-describedby attribute of the slider. Use this to reference the element containing the error message(s) for the slider. It will be picked by the SiFormItemComponent if the slider is used inside a form item.

Implements SiFormItemControl

id
string `__si-slider-${SiSliderComponent.idCounter++}`

The actual id of the control that should be used in the for attribute of a label.

Implements SiFormItemControl

incrementLabel
TranslatableString $localize`:@@SI_SLIDER.INCREMENT:Increment`

Text for aria-label of increment. Needed for a11y.

labelledby
string `${this.id()}-label`

ID that should be assigned to the label element inside the SiFormItemComponent.

If the target control is not of type input, select or button, it cannot be referenced by a label. Instead, aria-labelledby must be used to create a reference to a label. In such a case, an implementation of SiFormItemControl must provide the id of the label in labelledby. SiFormItemComponent will apply the id to the label so that it can be used inside the control to reference it in the aria-labelledby attribute.

Implements SiFormItemControl

max
number 100

Maximum of slider range.

maxLabel
string ''

Label to describe maximum of slider range.

min
number 0

Minimum of slider range.

minLabel
string ''

Label to describe minimum of slider range.

sliderLabel
TranslatableString $localize`:@@SI_SLIDER.LABEL:Value`

Text for aria-label of slider. Needed for a11y

step
number 1

Interval to step through the slider.

thumbIcon
string | undefined

Icon to use as the slider thumb.

value
number | undefined

Current value of slider.

Output Properties

Name Type Description
valueChange
number | undefined

Current value of slider.

Types Documentation

import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.

import type { SiFormItemControl } from '@siemens/element-ng/form';

Common interface for form item controls. Controls that should be connected to SiFormItemComponent must implement this interface and must be provided using the SI_FORM_ITEM_CONTROL token.

Properties


Except where otherwise noted, content on this site is licensed under MIT License.