@koalarx/ui
Version:
Koala UI is a Design System developed in Angular whose objective is to facilitate and make your development faster and simpler, making this framework your greatest ally.
17 lines (16 loc) • 1.26 kB
TypeScript
import { KoalaDynamicFormConfigInterface } from "../../interfaces/koala.dynamic-form-config.interface";
import { BehaviorSubject, Observable } from "rxjs";
import { KoalaDynamicAutocompleteOptionsInterface } from "../../interfaces/koala.dynamic-autocomplete-options.interface";
import { UntypedFormBuilder } from "@angular/forms";
import { KoalaDynamicFormAutocompleteMultipleConfigInterface } from "../../interfaces/koala.dynamic-form-autocomplete-multiple-config.interface";
import { FieldBase } from "./field.base";
import { DeviceDetectorService } from "ngx-device-detector";
export declare class AutocompleteBuilder extends FieldBase {
private service$;
constructor(label: string, name: string, formConfig: KoalaDynamicFormConfigInterface, fb: UntypedFormBuilder, deviceService: DeviceDetectorService);
service(service: Observable<KoalaDynamicAutocompleteOptionsInterface[]>): this;
defaultValueOnClean(value: any): this;
loadOptions(type: 'all' | 'onDemand', onDemandFilter?: (filter: string) => Observable<KoalaDynamicAutocompleteOptionsInterface[]>): this;
colorChipConfig(fn: (subject: BehaviorSubject<KoalaDynamicFormAutocompleteMultipleConfigInterface>) => void): this;
addOption(active?: boolean): this;
}