@bi8/am-dyn-form
Version:
ng update @angular/cli yarn add @angular/cli
33 lines (32 loc) • 1.18 kB
TypeScript
import { ValidatorFn, AsyncValidatorFn } from "@angular/forms";
import { DynFormControl } from "./dyn-form-control";
import { Observable, Subject } from "rxjs";
import { TemplateRef } from "@angular/core";
import { NgSelectComponent } from "@ng-select/ng-select";
import { Channel } from "@bi8/am-io";
export declare class DynAutoSelectControl extends DynFormControl {
type: string;
channel: Channel<string, any>;
typeahead$: Subject<any>;
items$: Observable<any>;
showNone: boolean;
noneLabel: string;
labelTemplate: TemplateRef<any>;
optionTemplate: TemplateRef<any>;
bindValue: string;
bindRef: string;
hasValue: boolean;
bindLabel: string;
loading: boolean;
multiple: boolean;
debounce: number;
searchable: boolean;
selectedValue: any;
ngSelectComponent: NgSelectComponent;
element: Element;
clearToggle: boolean;
constructor(options?: {}, validator?: ValidatorFn | ValidatorFn[] | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
checkHasValue(value?: any): void;
reload(param?: any): void;
getCustomPlaceholder(): any;
}