ngx-obelisco-example
Version:
Componentes funcionales y reutilizables para Angular.
34 lines (33 loc) • 1.37 kB
TypeScript
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
import { Router } from '@angular/router';
import { SearchbarItem } from 'ngx-obelisco-example/core/models';
import * as i0 from "@angular/core";
export declare class OSearchComponent implements AfterViewInit {
private router;
private elementRef;
private renderer;
searchbarItems: SearchbarItem[];
maxLengthResults: number;
placeholder: string;
type: string;
onSelectItem?: (item: SearchbarItem) => void;
term: string;
isHover: boolean;
noResults: boolean;
filteredResults: SearchbarItem[];
selectedIndex: number;
inputElement: ElementRef;
constructor(router: Router, elementRef: ElementRef, renderer: Renderer2);
adjustResultsWidth(): void;
search(): void;
ngAfterViewInit(): void;
resetSearch(): void;
goTo(e: SearchbarItem): void;
onEnter(): void;
onUp(): void;
onDown(): void;
onMouseEnter(): void;
onMouseLeave(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<OSearchComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<OSearchComponent, "o-search", never, { "searchbarItems": "searchbarItems"; "maxLengthResults": "maxLengthResults"; "placeholder": "placeholder"; "type": "type"; "onSelectItem": "onSelectItem"; }, {}, never, never, false>;
}