ng2-completer
Version:
ng2 autocomplete/typeahead component
13 lines (12 loc) • 644 B
TypeScript
import { Observable } from "rxjs";
import { LocalData } from "./local-data";
import { RemoteData } from "./remote-data";
import { LocalDataFactory } from "./local-data-factory";
import { RemoteDataFactory } from "./remote-data-factory";
export declare class CompleterService {
private localDataFactory;
private remoteDataFactory;
constructor(localDataFactory: LocalDataFactory, remoteDataFactory: RemoteDataFactory);
local(data: any[] | Observable<any>, searchFields?: string | null, titleField?: string | null): LocalData;
remote(url: string | null, searchFields?: string | null, titleField?: string | null): RemoteData;
}