symbrio-ng2-bootstrap
Version:
Native Angular Bootstrap Components
47 lines (46 loc) • 1.62 kB
TypeScript
import { ElementRef, TemplateRef, Renderer } from '@angular/core';
import { TypeaheadDirective } from './typeahead.directive';
import { TypeaheadMatch } from './typeahead-match.class';
export declare class TypeaheadContainerComponent {
private renderer;
parent: TypeaheadDirective;
query: any;
element: ElementRef;
isFocused: boolean;
top: string;
left: string;
display: string;
placement: string;
readonly isBs4: boolean;
protected _active: TypeaheadMatch;
protected _matches: TypeaheadMatch[];
private ulElement;
private liElements;
private optionHeight;
private ulPaddingTop;
private height;
private guiHeight;
private: boolean;
constructor(element: ElementRef, renderer: Renderer);
matches: TypeaheadMatch[];
readonly typeaheadScrollable: boolean;
readonly typeaheadOptionsInScrollableView: number;
readonly itemTemplate: TemplateRef<any>;
selectActiveMatch(): void;
prevActiveMatch(): void;
nextActiveMatch(): void;
selectActive(value: TypeaheadMatch): void;
hightlight(match: TypeaheadMatch, query: any): string;
focusLost(): void;
isActive(value: TypeaheadMatch): boolean;
selectMatch(value: TypeaheadMatch, e?: Event): boolean;
ngAfterViewInit(): void;
refreshSize(): void;
scrollPrevious(index: number): void;
scrollNext(index: number): void;
private isScrolledIntoView;
private scrollToBottom();
private scrollToTop();
private setElementToBeScrollable();
private setElementToBeNotScrollable();
}