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>
Gets the target of the navigation directive;
// Get
export class MyComponent {
...
@ContentChild(IgxDropDownNavigationDirective)
navDirective: IgxDropDownNavigationDirective = null
...
const navTarget: IgxDropDownBaseDirective = navDirective.navTarget
}
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: