ngx-mat-dynamic-form-builder
Version:
Build dynamic forms in Angular Material using Reactive forms.
31 lines (30 loc) • 1.03 kB
TypeScript
import { EventEmitter, OnChanges, SimpleChanges, OnInit } from '@angular/core';
import { FormControl, ValidatorFn } from '@angular/forms';
import { Observable } from 'rxjs';
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
export declare class AutoCompleteComponent implements OnInit, OnChanges {
options: any[];
defaultOption: any[];
defaultOptionKey: string;
label: string;
placeholder: string;
displayKey: string;
filterKey: string;
hint: string;
appearance: string;
disabled: boolean;
autoClear: boolean;
validators: ValidatorFn[];
output: EventEmitter<any>;
stateCtrl: FormControl;
filteredOptions: Observable<any[]>;
constructor();
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
setupValidators(): void;
displayFn(value: any): any;
setValue(event: MatAutocompleteSelectedEvent): void;
clearValue(): void;
private _filterOptions;
private valueSelected;
}