Provide overlay settings for the autocomplete drop down
// get
let settings = this.autocomplete.autocompleteSettings;
<!--set-->
<input type="text" [igxAutocomplete]="townsPanel" [igxAutocompleteSettings]="settings"/>
// set
this.settings = {
positionStrategy: new ConnectedPositioningStrategy({
closeAnimation: null,
openAnimation: null
})
};
Enables/disables autocomplete component
// get
let disabled = this.autocomplete.disabled;
<!--set-->
<input type="text" [igxAutocomplete]="townsPanel" [igxAutocompleteDisabled]="disabled"/>
// set
public disabled = true;
Emitted after item from the drop down is selected
<input igxInput [igxAutocomplete]="townsPanel" (selectionChanging)='selectionChanging($event)' />
Sets the target of the autocomplete directive
<!-- Set -->
<input [igxAutocomplete]="dropdown" />
...
<igx-drop-down #dropdown>
...
</igx-drop-down>
Sets the target of the navigation directive; If no valid target is passed, it falls back to the drop down context
<!-- Set -->
<input [igxDropDownItemNavigation]="dropdown" />
...
<igx-drop-down #dropdown>
...
</igx-drop-down>
Ignite UI for Angular Autocomplete - Documentation
The igxAutocomplete directive provides a way to enhance a text input by showing a drop down of suggested options, provided by the developer.
Example: