UNPKG

1.04 kBTypeScriptView Raw
1import { ElementRef, TemplateRef } from '@angular/core';
2import { TypeaheadDirective } from './typeahead.directive';
3import { TypeaheadMatch } from './typeahead-match.class';
4export declare class TypeaheadContainerComponent {
5 parent: TypeaheadDirective;
6 query: any;
7 element: ElementRef;
8 isFocused: boolean;
9 top: string;
10 left: string;
11 display: string;
12 placement: string;
13 readonly isBs4: boolean;
14 protected _active: TypeaheadMatch;
15 protected _matches: TypeaheadMatch[];
16 constructor(element: ElementRef);
17 readonly active: TypeaheadMatch;
18 matches: TypeaheadMatch[];
19 readonly optionsListTemplate: TemplateRef<any>;
20 readonly itemTemplate: TemplateRef<any>;
21 selectActiveMatch(): void;
22 prevActiveMatch(): void;
23 nextActiveMatch(): void;
24 selectActive(value: TypeaheadMatch): void;
25 hightlight(match: TypeaheadMatch, query: any): string;
26 focusLost(): void;
27 isActive(value: TypeaheadMatch): boolean;
28 selectMatch(value: TypeaheadMatch, e?: Event): boolean;
29}