Design systém gov.cz4.7.1

gov-form-select ​

Properties ​

PropertyAttributeDescriptionTypeDefault
disableddisabledMakes the select component disabled. This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.booleanfalse
identifieridentifierCustom select identifier.stringundefined
invalidinvalidIndicates the entered value does not conform to the format expected by the application.booleanundefined
namenameName of the select.stringundefined
optionsoptionsOptions of selectFormSelectOption[] | stringundefined
requiredrequiredSet whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.booleanfalse
sizesizeSelect’s size."l" | "m" | "s" | "xl" | "xs"'m'
successsuccessIndicates the entered value of child form element does conform to the format expected by the application.booleanundefined
valuevalueValue of selectstringundefined

Events ​

EventDescriptionType
gov-blurEmitted when the select loses focus.CustomEvent<FormSelectEvent>
gov-changeEmitted when the select change value.CustomEvent<FormSelectEvent>
gov-focusEmitted when the select has focus.CustomEvent<FormSelectEvent>

Methods ​

getRef() => Promise<HTMLSelectElement> ​

Returns an instance of the native html select element

Returns ​

Type: Promise<HTMLSelectElement>

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

Returns the current state of the component

Parameters ​

NameTypeDescription
optionsFocusOptions

Returns ​

Type: Promise<void>

Dependencies ​

Used by ​

Depends on ​

Graph ​


Built with StencilJS