Select
Showcase
This is a helper message
This is a helper message
<LnxSelect v-model="..." <-- Pass a reactive variable here to bind its value :options="[{'label':'Option 1','value':'option-1'},{'label':'Option 2','value':'option-2'},{'label':'Option 3','value':'option-3'}]" label-property="label" :search-placeholder-text="undefined" @update:modelValue="..." <-- Two way binding of the component @query="..." <-- When the input search is written @select="..." <-- When an option is selected > Enter something <template #notFound> Nothing found </template> <template #error> This is an error message </template> <template #helper> This is a helper message </template> </LnxSelect>
v-model
UBinds the value of the select to the reactive variable used as prop Default value: undefinedconvertFn
(option: T) => T | UFunction to convert the value before emitting it. It receives the option and must return the converted value Default value: undefinedloadingOptions
booleanIndicates if the options are being loaded asynchronously at the moment Default value: falsecustomValidity
stringThe error message of the input. It is the default value for the `error` slot Default value: undefined