ng2-bootstrap
Version:
angular2 bootstrap components
30 lines (29 loc) • 951 B
TypeScript
import { ElementRef, TemplateRef } from '@angular/core';
import { TypeaheadOptions } from './typeahead-options.class';
import { TypeaheadDirective } from './typeahead.directive';
export declare class TypeaheadContainerComponent {
parent: TypeaheadDirective;
query: any;
element: ElementRef;
isFocused: boolean;
top: string;
left: string;
display: string;
private _active;
private _matches;
private _field;
private placement;
constructor(element: ElementRef, options: TypeaheadOptions);
matches: Array<any>;
readonly itemTemplate: TemplateRef<any>;
field: string;
position(hostEl: ElementRef): void;
selectActiveMatch(): void;
prevActiveMatch(): void;
nextActiveMatch(): void;
protected selectActive(value: any): void;
protected hightlight(item: any, query: any): string;
focusLost(): void;
isActive(value: any): boolean;
private selectMatch(value, e?);
}