ngx-mat-dynamic-form-builder
Version:
Build dynamic forms in Angular Material using Reactive forms.
39 lines (38 loc) • 1.4 kB
TypeScript
import { ElementRef, OnInit, EventEmitter, SimpleChanges, OnChanges } from '@angular/core';
import { FormControl, ValidatorFn } from '@angular/forms';
import { MatAutocompleteSelectedEvent, MatAutocomplete } from '@angular/material/autocomplete';
import { MatChipInputEvent } from '@angular/material/chips';
import { Observable } from 'rxjs';
export declare class ChipSelectorComponent implements OnInit, OnChanges {
options: any[];
defaultOptions: any[];
defaultOptionsKey: string;
label: string;
placeholder: string;
displayKey: string;
filterKey: string;
hint: string;
appearance: string;
disabled: boolean;
customChip: boolean;
validators: ValidatorFn[];
output: EventEmitter<any[]>;
formControl: FormControl;
formInput: ElementRef<HTMLInputElement>;
matAutocomplete: MatAutocomplete;
visible: boolean;
selectable: boolean;
separatorKeysCodes: number[];
filteredObjects: Observable<any[]>;
selectedObjects: any[];
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
setupValidators(): void;
add(event: MatChipInputEvent): void;
remove(item: string): void;
updateFilteredObjects(): void;
selected(event: MatAutocompleteSelectedEvent): void;
addDefaultSelected(values: any[]): void;
private _filter;
private valueSelected;
}