angular-text-input-autocomplete
Version:
A angular 6+ directive for adding autocomplete functionality to text input elements, built around composability
22 lines (21 loc) • 647 B
TypeScript
import { ElementRef } from '@angular/core';
import { Subject } from 'rxjs';
export declare class TextInputAutocompleteMenuComponent {
dropdownMenuElement: ElementRef<HTMLUListElement>;
position: {
top: number;
left: number;
};
selectChoice: Subject<{}>;
activeChoice: any;
searchText: string;
choiceLoadError: any;
choiceLoading: boolean;
private _choices;
trackById: (index: number, choice: any) => any;
choices: any[];
onArrowDown(event: KeyboardEvent): void;
onArrowUp(event: KeyboardEvent): void;
onEnter(event: KeyboardEvent): void;
private scrollToChoice(index);
}