Design systém gov.cz4.7.0

gov-form-range

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabledMakes the range component disabledbooleanfalse
identifieridentifierCustom range identifierstringundefined
inputinputShow input with current valuebooleanfalse
invalidinvalidIndicates the entered value does not conform to the format expected by the applicationbooleanundefined
listIdentifierlist-identifierLinks a element to a , providing value markers as guidance for the userstringundefined
maxmaxMaximum value that is acceptablenumber | stringundefined
minminMinimum value that is acceptablenumber | stringundefined
namenameName of the rangestringundefined
requiredrequiredSet whether the range is required or notbooleanfalse
sizesizeRange’s size"l" | "m" | "s""m"
stepstepDefines size of each stepnumber | stringundefined
successsuccessIndicates the entered value of child form element does conform to the format expected by the applicationbooleanundefined
tooltiptooltipShow tooltip with current valuebooleanfalse
valuevalueValue of rangestringundefined

Events

EventDescriptionType
gov-blurEmitted when the input loses focus.CustomEvent<FormInputEvent>
gov-focusEmitted when the input has focus.CustomEvent<FormInputEvent>
gov-inputEmitted when the input change value.CustomEvent<FormInputEvent>

Methods

clearValue() => Promise<void>

Clears input value

Returns

Type: Promise<void>

getRef() => Promise<HTMLInputElement>

Returns an instance of the native html input element

Returns

Type: Promise<HTMLInputElement>

setFocus(options?: FocusOptions) => Promise<void>

Returns the current state of the component

Parameters

NameTypeDescription
optionsFocusOptions

Returns

Type: Promise<void>

setValue(value: string) => Promise<void>

Sets the ordered value of the element

Parameters

NameTypeDescription
valuestring

Returns

Type: Promise<void>

Dependencies

Depends on

Graph


Built with StencilJS