listbox: {
animation: "fade"
} |
| ariaLabel | Defines a string value that labels an interactive element. | string | - | |
| ariaLabelledby | Identifier of the underlying input element. | string | - | |
| backendFiltering | Items won't be filtered on clientside, use the `filter` event to filter in your backend | boolean | - | false |
| disabled | Interaction is disabled | boolean | - | false |
| emptyLabel | A label which is displayed when no options are visible | string | - | listbox: {
emptyLabel: undefined
} |
| filter | Custom filter function to filter the items based on the input value - default is label string comparison | ((option: unknown, value: string) => boolean) | - | |
| filterDebounce | Number of milliseconds to delay the filter event | number | - | listbox: {
filterDebounce: 400
} |
| filterIcon | Icon of the column search input | string | - | listbox: {
filterIcon: undefined
} |
| filterPlaceholder | Placeholder of the column search input | string | - | listbox: {
filterPlaceholder: undefined
} |
| filterable | Enable an additional searchbar below the header | boolean | - | false |
| iconPack | Icon pack to use | string | `mdi`, `fa`, `fas and any other custom icon pack` | listbox: {
iconPack: undefined
} |
| id | Same as native id. Also pass the id to an wrapping `o-field` component - default is an uuid. | string | - | useId() |
| v-model | The selected option value, use v-model to make it two-way binding | string\|number\|object | - | |
| multiple | Allows multiple selections - converts the `modelValue` into an array | IsMultiple | - | |
| options | Autocomplete options | ListboxOptions<unknown> | - | |
| override | Override existing theme classes completely | boolean | - | |
| scrollHeight | Height of the listbox, a scrollbar is defined if height of list exceeds this value | number \| string | - | listbox: {
scrollHeight: "225"
} |
| selectOnFocus | Select current focused item when focused | boolean | - | false |
| selectable | Enables item selection | boolean | - | true |
### Events
| Event name | Properties | Description |
| ------------------ | ---------------------------------------------------------------------- | ------------------------------------------------ |
| update:model-value | **value** `unknown \| unknown[]` - updated modelValue prop | modelValue prop two-way binding |
| select | **value** `unknown` - selected value | on select event - fired before update:modelValue |
| filter | **value** `string` - filter valuefalse |
| hidden | Define whether the item is visible or not | boolean | - | false |
| icon | Icon to be shown | string | - | |
| iconPack | Icon pack to use | string | `mdi`, `fa`, `fas and any other custom icon pack` | listbox: {
iconPack: undefined
} |
| iconSize | Icon size | string | `small`, `medium`, `large` | listbox: {
iconSize: undefined
} |
| label | Item label, unnecessary when default slot is used | string | - | |
| override | Override existing theme classes completely | boolean | - | |
| value | Item value (it will be used as v-model of wrapper component) - default is an uuid | string\|number\|object | - | useId() |
### Events
| Event name | Properties | Description |
| ---------- | -------------------------------------------------------------------------- | ------------- |
| click | **value** `unknown` - value prop data