UNPKG

@kronscht/former

Version:

Former is an Angular library that provides a declarative way to generate complex forms based on primeng components

12 lines (11 loc) 575 B
import { FormBuilder, FormGroup, ValidatorFn } from '@angular/forms'; import { BaseElement, Elements, FormDefinition } from './model/former.model'; import * as i0 from "@angular/core"; export declare class FormerService { readonly fb: FormBuilder; generateForm(formDefinition: FormDefinition): FormGroup; addControlRecursive(formGroup: FormGroup, elements: Elements): void; addValidators(element: BaseElement): ValidatorFn[]; static ɵfac: i0.ɵɵFactoryDeclaration<FormerService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<FormerService>; }