UNPKG

ionic2-auto-complete-with-ng5

Version:

Ionic2 Auto Complete module with Angular5 support written in TypeScript

25 lines (21 loc) 638 B
export interface AutoCompleteService { /** * the literal name of the title attribute */ labelAttribute?: string; /** * the value of the field when used in a formGroup. If null, labelAttribute is used */ formValueAttribute?: any; /** * this method should return an array of objects (results) * @param term */ getResults(term: any): any; /** * this method parses each item of the results from data service. * the returned value is the displayed form of the result * @param item */ getItemLabel?(item: any): any; }