auto-complete2.d.ts
1.89 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
import { OnInit, EventEmitter, AfterViewInit } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { Request } from '../_services/request.service';
import DataSource from 'devextreme/data/data_source';
export declare class SocAutoComplete2Component implements ControlValueAccessor, OnInit, AfterViewInit {
private request;
filteredOptions: any[];
/** local, remote */
mode: 'local' | 'remote' | 'dropdown';
/** API ที่ต้องการเรียกใช้เมื่อพิมพ์ auto complete */
api: string;
/** field ที่ต้องการ query เมื่อยิง API */
field: string;
fieldApi: string;
id: string;
placeholder: string;
value: String;
disabled: boolean;
orderBy: string;
filter: string;
ex_type_view: string;
limit: number;
onLoad: EventEmitter<any>;
valueChange: EventEmitter<string>;
valueSelete: EventEmitter<string>;
storeOnLoaded: EventEmitter<string>;
acceptCustomValue: boolean;
resData: any[];
loadOptionData: any[];
openOnFieldClick: boolean;
showDropDownButton: boolean;
searchEnabled: boolean;
inputValue: string;
/** ds */
ds: DataSource;
constructor(request: Request);
ngOnInit(): Promise<void>;
ngAfterViewInit(): void;
fnStartDataSourceLocal(): Promise<void>;
fnStartDataSourceRemote(): Promise<void>;
fnGetCustomStore(key: any): Promise<any>;
fnCustomStoreOnLoaded: (result: any) => any;
onValueChanged(e: any): void;
onValueSelete(e: any): void;
fnPreResponse(params: any): Promise<any>;
onOpened(e: any): void;
/** START Bind Value */
onModelChange: Function;
onModelTouched: Function;
writeValue(value: any): void;
registerOnChange(fn: Function): void;
registerOnTouched(fn: Function): void;
}
export declare class SharedAutoComplete2Module {
}