AutoCompleteComponent
Represents the Kendo UI AutoComplete component for Angular.
<kendo-autocomplete
[data]="['Item1', 'Item2', 'Item3']"
placeholder="placeholder">
</kendo-autocomplete>
Selector
kendo-autocomplete
Export Name
Accessible in templates as #kendoAutoCompleteInstance="kendoAutoComplete"
Inputs
Name | Type | Default | Description |
---|---|---|---|
adaptiveMode |
|
|
Enables or disables the adaptive mode. By default, the adaptive rendering is disabled. |
adaptiveSubtitle |
|
Sets the subtitle of the ActionSheet that renders instead of the Popup when using small screen devices. By default, the ActionSheet does not render a subtitle. | |
adaptiveTitle |
|
|
Sets the title of the ActionSheet that renders instead of the Popup when using small screen devices. By default, the ActionSheet title uses the text provided for the label of the AutoComplete. |
data |
|
Sets the data of the AutoComplete.
| |
disabled |
|
|
Sets the disabled state of the component. To learn how to disable the component in reactive forms, refer to the article on Forms Support. |
fillMode |
|
|
Sets the fillMode of the component. |
filterable |
|
|
Enables the filtering functionality.
If set to |
highlightFirst |
|
|
Defines whether the first match from the suggestions list will be automatically focused.
By default, |
inputAttributes |
|
Sets the HTML attributes of the inner focusable input element. Attributes which are essential for certain component functionalities cannot be changed. | |
itemDisabled |
|
Defines a Boolean function that is executed for each data item in the component (see examples). Determines whether the item will be disabled. | |
listHeight |
|
|
Sets the height of the options list in the popup. By default,
When using |
loading |
|
|
Sets and gets the loading state of the AutoComplete. |
placeholder |
|
|
Sets the placeholder of the AutoComplete. |
popupSettings |
|
Configures the popup of the AutoComplete. The available options are:
| |
readonly |
|
|
Sets the read-only state of the component. |
rounded |
|
|
Sets the border radius of the component. |
showStickyHeader |
|
|
Shows or hides the current group sticky header when using grouped data. By default, the sticky header is displayed (see example). |
size |
|
|
Sets the size of the component. |
suggest |
|
|
Enables the auto-completion of the text based on the first data item. |
tabindex |
|
|
Specifies the |
value |
|
Sets the value of the AutoComplete. | |
valueField |
|
Specifies the
| |
virtual |
|
|
Enables the virtualization functionality. |
Fields
Name | Type | Default | Description |
---|---|---|---|
isOpen |
|
Returns the current open state. Returns |
Events
Name | Type | Description |
---|---|---|
close |
|
Fires each time the popup is about to close. This event is preventable. If you cancel it, the popup remains open. |
closed |
|
Fires after the popup closes. |
filterChange |
|
Fires each time the user types in the input field. You can filter the source based on the passed filtration value (see example). |
inputBlur |
|
Fires each time the |
inputFocus |
|
Fires each time the user focuses the |
blur |
|
Fires each time the AutoComplete gets blurred. |
focus |
|
Fires each time the user focuses the AutoComplete. |
open |
|
Fires each time the popup is about to open. This event is preventable. If you cancel it, the popup remains closed. |
opened |
|
Fires after the popup opens. |
valueChange |
|
Fires each time the value changes—
when the component is blurred or the value is cleared through the Clear button
(see example).
When the value of the component is programmatically changed to |
Methods
blur |
---|
Blurs the AutoComplete. |
focus |
---|
Focuses the AutoComplete. |
focusItemAt | ||||||
---|---|---|---|---|---|---|
Focuses a specific item of the AutoComplete based on a provided index. If null or invalid index is provided the focus will be removed. | ||||||
|
reset |
---|
Resets the value of the AutoComplete.
If you use the |
toggle | ||||||
---|---|---|---|---|---|---|
Toggles the visibility of the popup or actionSheet.
If you use the | ||||||
|