Slider
Formsatlas-sliderExamples
Basic
Shows the value by default; add showMinMax for the range ends and a suffix for the unit.
Volume40%
Budget1500 €
05000
Suffix, bounds and step
suffix is shown after the value and read by screen readers ( aria-valuetext , "40%"); showMinMax prints the bounds under the track.
Discount40%
060
In a form field
Inside atlas-form-field the field label names the slider and the hint describes it; hide the slider's own label and value with [showValue]="false" when the field already shows them.
Currently 6 of 10.
API
Generated from the library source, so it always matches the code.
AtlasSliderComponent atlas-slider
| Input | Type | Default | Description |
|---|---|---|---|
| value two-way | number | 0 | |
| min | number | undefined | undefined | |
| max | number | undefined | undefined | |
| step | number | 1 | |
| disabled | boolean | false | |
| errors | readonly ValidationError.WithOptionalFieldTree[] | [] | [field] . |
| required | boolean | false | [field] . |
| invalid | boolean | false | [field] . |
| touched | boolean | false | [field] . |
| readonly | boolean | false | [field] . |
| pending | boolean | false | [field] . |
| name | string | '' | [field] . |
| label | string | '' | |
| showValue | boolean | true | |
| showMinMax | boolean | false | |
| suffix | string | '' | |
| ariaLabel | string | null | null | |
| inputId | string | undefined | undefined | id of the focusable element, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one. |
| ariaDescribedBy | string | null | null | aria-describedby , merged with the surrounding form field's hint or error. |
| class | string | '' | cn() ; yours win on conflicts. |
| Output | Payload | Description |
|---|---|---|
| touch | void |