forked from kadoshms/ionic2-autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautocomplete.component.d.ts
More file actions
102 lines (101 loc) · 2.27 KB
/
autocomplete.component.d.ts
File metadata and controls
102 lines (101 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import { EventEmitter, TemplateRef } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
export declare class AutoCompleteComponent implements ControlValueAccessor {
dataProvider: any;
options: any;
disabled: any;
keyword: string;
showResultsFirst: boolean;
alwaysShowList: boolean;
hideListOnSelection: boolean;
template: TemplateRef<any>;
useIonInput: boolean;
autoFocus: EventEmitter<any>;
autoBlur: EventEmitter<any>;
itemSelected: EventEmitter<any>;
itemsShown: EventEmitter<any>;
itemsHidden: EventEmitter<any>;
ionAutoInput: EventEmitter<string>;
searchbarElem: any;
inputElem: any;
private onTouchedCallback;
private onChangeCallback;
defaultOpts: any;
suggestions: any[];
formValue: any;
showList: boolean;
private _showList;
private selection;
private showListChanged;
/**
* create a new instace
*/
constructor();
/**
* handle tap
* @param event
*/
handleTap(event: any): void;
writeValue(value: any): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
updateModel(): void;
ngAfterViewChecked(): void;
/**
* get items for auto-complete
*/
getItems(e?: Event): void;
/**
* show item list
*/
showItemList(): void;
/**
* hide item list
*/
hideItemList(): void;
/**
* select item from list
*
* @param event
* @param selection
**/
select(selection: any): void;
/**
* get current selection
* @returns {any}
*/
getSelection(): any;
/**
* get current input value
* @returns {string}
*/
getValue(): any;
/**
* set current input value
*/
setValue(selection: any): void;
/**
/**
* clear current input value
*/
clearValue(hideItemList?: boolean): void;
/**
* set focus of searchbar
*/
setFocus(): void;
/**
* fired when the input focused
*/
onFocus(): void;
/**
* fired when the input focused
*/
onBlur(): void;
/**
* handle document click
* @param event
*/
private documentClickHandler(event);
private getFormValue(selection);
private getLabel(selection);
}