UNPKG

mss-engine-forms

Version:

A simple typehead library developed by MSS development team to be used for dynamic forms

28 lines (27 loc) 1.1 kB
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core"; import { FormBuilder } from "@angular/forms"; import * as i0 from "@angular/core"; export declare class MssFormsComponent implements OnInit, OnChanges { private _fb; model: any; isLoading: boolean; submitBtnOptions: any; error: any; onSubmit: EventEmitter<any>; dynamicFormGroup: any; fields: any; constructor(_fb: FormBuilder); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; private buildForm; private getFormControlsFields; private getNewFormControlsFields; private addValidator; getFieldClassname(field: any): { [x: string]: any; }; submit(): void; resetForm(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MssFormsComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MssFormsComponent, "lib-mss-forms", never, { "model": "model"; "isLoading": "isLoading"; "submitBtnOptions": "submitBtnOptions"; "error": "error"; }, { "onSubmit": "onSubmit"; }, never, never, false>; }