Autocomplete
autocomplete
{can.Component}
The autocomplete component renders a search input. It will search the provided model and render a list of results below the search input. When a result is selected, the component will replace the search string with the result.
<bit-autocomplete></bit-autocomplete>
Parameters
-
model
{can.Model}Contains the model to search with.
-
search-field-id
{String}The ID of the input element.
-
validited
{boolean}Marks when a selection is made.
-
selected-item
{can.Map}The selected item object.
-
debounce-delay
{Number}The amount of time to wait before searching.
-
character-delay
{Number}The number of characters that must be entered to trigger a search.
Component Initialization
Add the
inputNameandresultsvalues if needed.