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 |
|
18 |
|
19 | formatter: (result: any) => string;
|
20 | }
|
21 | export declare class NgbTypeaheadWindow implements OnInit {
|
22 | activeIdx: number;
|
23 | |
24 |
|
25 |
|
26 |
|
27 | id: string;
|
28 | |
29 |
|
30 |
|
31 | focusFirst: boolean;
|
32 | |
33 |
|
34 |
|
35 | results: any;
|
36 | |
37 |
|
38 |
|
39 | term: string;
|
40 | |
41 |
|
42 |
|
43 |
|
44 | formatter: typeof toString;
|
45 | |
46 |
|
47 |
|
48 | resultTemplate: TemplateRef<ResultTemplateContext>;
|
49 | |
50 |
|
51 |
|
52 |
|
53 |
|
54 | popupClass: string;
|
55 | |
56 |
|
57 |
|
58 | selectEvent: EventEmitter<any>;
|
59 | activeChangeEvent: EventEmitter<any>;
|
60 | hasActive(): boolean;
|
61 | getActive(): any;
|
62 | markActive(activeIdx: number): void;
|
63 | next(): void;
|
64 | prev(): void;
|
65 | resetActive(): void;
|
66 | select(item: any): void;
|
67 | ngOnInit(): void;
|
68 | private _activeChanged;
|
69 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbTypeaheadWindow, never>;
|
70 | static ɵcmp: i0.ɵɵComponentDeclaration<NgbTypeaheadWindow, "ngb-typeahead-window", ["ngbTypeaheadWindow"], { "id": { "alias": "id"; "required": false; }; "focusFirst": { "alias": "focusFirst"; "required": false; }; "results": { "alias": "results"; "required": false; }; "term": { "alias": "term"; "required": false; }; "formatter": { "alias": "formatter"; "required": false; }; "resultTemplate": { "alias": "resultTemplate"; "required": false; }; "popupClass": { "alias": "popupClass"; "required": false; }; }, { "selectEvent": "select"; "activeChangeEvent": "activeChange"; }, never, never, true, never>;
|
71 | }
|