Design systém gov.cz4.7.1

gov-form-multi-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
hideSelectedListhide-selected-listOption to hide the list of selected itemsbooleanfalse
identifieridentifierCustom select identifier.stringundefined
invalidinvalidIndicates the entered value does not conform to the format expected by the application.booleanundefined
messageEmptymessage-emptyCustom message for when there is a blank sheetstring'Nebyly nalezeny žádné výsledky'
messageLoadingmessage-loadingCustom message for when data is loadedstring'Načítám...'
namenameName of the select.stringundefined
optionsoptionsOptions of multi-selectGovFormMultiSelectItem[] | stringundefined
placeholderplaceholderCustom select placeholder.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 multi-selectGovFormMultiSelectSelectedItem[] | stringundefined

Events ​

EventDescriptionType
gov-blurEmitted when the select loses focus.CustomEvent<FormMultiselectEvent>
gov-changeEmitted when the select change value.CustomEvent<FormMultiselectEvent>
gov-focusEmitted when the select has focus.CustomEvent<FormMultiselectEvent>
gov-removeEmitted when an item is removedCustomEvent<FormMultiselectEvent>
gov-selectEmitted when an item is selectedCustomEvent<FormMultiselectEvent>

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>

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