Skip to main content

InputRange

Der Input-Typ Range erzeugt ein interaktives Element, mit dem Werte durch Verschieben eines Reglers verändert werden können.

Konstruktion

Code

<kol-input-range
_label="Wertebereich"
_min="100"
_max="200"
_value="100"
_step="20"
_icon='{"left": "codicon codicon-arrow-small-down", "right": "codicon codicon-arrow-small-up"}'
></kol-input-range>

Beispiel

Verwendung

Best practices

  • Achten sie darauf id und name korrekt zu setzen, damit die Daten beim Formular Absenden mitgesendet werden.

Barrierefreiheit

Tastatursteuerung

TasteFunktion
TabFokussiert das Eingabefeld.
Pfeil-TastenVerändern den Wert der Range-Komponente.

Properties

PropertyAttributeDescriptionTypeDefault
_accessKey_access-keyDefines which key combination can be used to trigger or focus the interactive element of the component.string | undefinedundefined
_alert_alertDefines whether the screen-readers should read out the notification.boolean | undefinedtrue
_autoComplete_auto-completeDefines whether the input can be auto-completed."off" | "on" | undefinedundefined
_disabled_disabledMakes the element not focusable and ignore all events.boolean | undefinedundefined
_error_errorDefines the error message text.string | undefinedundefined
_hideLabel_hide-labelHides the label.boolean | undefinedundefined
_hint_hintDefines the hint text.string | undefined''
_icon_iconDefines the icon classnames (e.g. _icon="fa-solid fa-user").string | undefined | { right?: IconOrIconClass | undefined; left?: IconOrIconClass | undefined; }undefined
_id_idDefines the internal ID of the primary component element.string | undefinedundefined
_label_labelDefines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to false to enable the expert slot.boolean | string | undefinedundefined
_list_list[DEPRECATED] Use _suggestions.

Deprecated: Gibt die Liste der Vorschlagswörter an.
Option<W3CInputValue>[] | string | undefinedundefined
_max_maxDefines the largest possible input value.number | undefinedundefined
_min_minDefines the smallest possible input value.number | undefinedundefined
_name_nameDefines the technical name of an input field.string | undefinedundefined
_on--Gibt die EventCallback-Funktionen für das Input-Event an.InputTypeOnBlur & InputTypeOnClick & InputTypeOnChange & InputTypeOnFocus | undefinedundefined
_step_stepDefines the step size for value changes.number | undefinedundefined
_suggestions_suggestionsSuggestions to provide for the input.W3CInputValue[] | string | undefinedundefined
_tabIndex_tab-indexDefines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)number | undefinedundefined
_tooltipAlign_tooltip-alignDefines where to show the Tooltip preferably: top, right, bottom or left."bottom" | "left" | "right" | "top" | undefined'top'
_touched_touchedShows if the input was touched by a user.boolean | undefinedfalse
_value_valueDefines the value of the input.number | undefinedundefined

Slots

SlotDescription
Die Beschriftung des Eingabeelements.

Dependencies

Depends on

Graph


Live-Editor

Beispiele