You can add your custom header to the autocomplete.
Autocomplete
Extended input that provide suggestions while the user types. Use with Field to access all functionalities
Selected:
# Object array
Selected:
# Header
Selected:
You can add your custom footer to the autocomplete.
Selected:
# Async with custom template
You can have a custom template by adding a scoped slot to it.
API from TMDb.
Selected:
# Async with infinite scroll
With check-infinite-scroll
and infinite-scroll
event you can listen to the end of the scroll list to implement an infinite scroll strategy.
API from TMDb.
Selected:
# API
Name | Description | Type | Values | Default |
---|---|---|---|---|
v-model | Binding value | String, Number | — | — |
data | Options / suggestions | Array<String>, Array<Number>, Array<Object> | — | — |
field | Property of the object (if data is array of objects) to use as display text, and to keep track of selected option | String | — | value |
custom-formatter | Function to format an option to a string for display in the input as alternative to field prop) | Function | — | |
clear-on-select | Clear input text on select | Boolean | — | false |
open-on-focus | Open dropdown list on focus | Boolean | — | false |
keep-first | The first option will always be pre-selected (easier to just hit enter or tab) | Boolean | — | false |
size | Vertical size of input, optional | String | is-small , is-medium , is-large | — |
expanded | Makes input full width when inside a grouped or addon field | Boolean | — | false |
loading | Add the loading state to the input | Boolean | — | false |
icon | Icon name to be added | String | — | — |
icon-pack | Icon pack to use | String | mdi , fa , fas , far , fad , fal | mdi |
maxlength | Same as native maxlength , plus character counter | String, Number | — | — |
check-infinite-scroll | Makes the component check if list reached scroll end and emit infinite-sroll event. | Boolean | — | false |
Any native attribute | — | — | — | — |
This page is open source. Noticed a typo or something's unclear?