1 | import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
2 | import { toString } from '../util/util';
|
3 | import * as i0 from "@angular/core";
|
4 |
|
5 |
|
6 |
|
7 | export interface ResultTemplateContext {
|
8 | |
9 |
|
10 |
|
11 | result: any;
|
12 | |
13 |
|
14 |
|
15 | term: string;
|
16 | }
|
17 | export declare class NgbTypeaheadWindow implements OnInit {
|
18 | activeIdx: number;
|
19 | |
20 |
|
21 |
|
22 |
|
23 | id: string;
|
24 | |
25 |
|
26 |
|
27 | focusFirst: boolean;
|
28 | |
29 |
|
30 |
|
31 | results: any;
|
32 | |
33 |
|
34 |
|
35 | term: string;
|
36 | |
37 |
|
38 |
|
39 |
|
40 | formatter: typeof toString;
|
41 | |
42 |
|
43 |
|
44 | resultTemplate: TemplateRef<ResultTemplateContext>;
|
45 | |
46 |
|
47 |
|
48 |
|
49 |
|
50 | popupClass: string;
|
51 | |
52 |
|
53 |
|
54 | selectEvent: EventEmitter<any>;
|
55 | activeChangeEvent: EventEmitter<any>;
|
56 | hasActive(): boolean;
|
57 | getActive(): any;
|
58 | markActive(activeIdx: number): void;
|
59 | next(): void;
|
60 | prev(): void;
|
61 | resetActive(): void;
|
62 | select(item: any): void;
|
63 | ngOnInit(): void;
|
64 | private _activeChanged;
|
65 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbTypeaheadWindow, never>;
|
66 | static ɵcmp: i0.ɵɵComponentDeclaration<NgbTypeaheadWindow, "ngb-typeahead-window", ["ngbTypeaheadWindow"], { "id": "id"; "focusFirst": "focusFirst"; "results": "results"; "term": "term"; "formatter": "formatter"; "resultTemplate": "resultTemplate"; "popupClass": "popupClass"; }, { "selectEvent": "select"; "activeChangeEvent": "activeChange"; }, never, never, false>;
|
67 | }
|