Skip to main content

Options

shadow

Element Options je určený na použitie vo vnútri elementu Select a slúži na zobrazovanie dynamicky generovaného zoznamu možností, ktorý sa asynchrónne načíta zo zadanej URL adresy.

note

Pre viac informácií o použití Options sa presuňte do dokumentácie elementu Select

Atribúty a Vlastnosti

optionArrayPath

DescriptionThe path to the options field in the response from the server.
Attributeoption-array-path
Typestring
Defaultdata
DescriptionThe amount of the drop-down list of options.
Attributedropdown-height
Typestring
Default100%

itemValue

DescriptionThe name of the property to use as the option value.
Attributeitem-value
Typestring
Defaultvalue

itemText

DescriptionThe name of the property to use as the option text.
Attributeitem-text
Typestring
Defaulttext

lazyLoadSize

DescriptionThe number of items loaded during lazy loading.
Attributelazy-load-size
Typenumber
Default10
DescriptionSearch string for filtering options.
Attributesearch
Typestring
Defaultundefined

searchToQueryParams

DescriptionSpecifies whether to add the search string to the URL parameters.
Attributesearch-to-query-params
Typeboolean
Defaultundefined

searchParamName

DescriptionThe name of the parameter to search in the URL.
Attributesearch-param-name
Typestring
Defaultsearch

queryParams

DescriptionAdditional parameters for URL query.
Attributequery-params
Typestring
Defaultundefined

lazy

DescriptionSpecifies whether to use lazy option loading.
Attributelazy
Typeboolean
Defaultundefined

Eventy

NameDescription
wje-options:loadCalled after loading the options.

Metódy

findSelectedOptionData

DescriptionSearches for data about the selected options based on the specified option values.
SignaturefindSelectedOptionData(selectedOptionValues: Array) => Array

addOption

DescriptionAdds an option to the element.
SignatureaddOption(optionData: object) => void

addOptions

DescriptionAdds more options to the element.
SignatureaddOptions(optionsData: Array, silent?: boolean) => void

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS Custom Vlastnosti

No CSS custom properties available for this component.

Sloty

NameDescription
``Default slot options.