UNPKG

grcm-components

Version:

> ⚡ Crea formularios dinámicos en Angular de forma rápida, limpia y reutilizable.

15 lines (14 loc) 504 B
import { AsyncValidatorFn, ValidatorFn } from "@angular/forms"; import { GrcmFormComponentType } from "./form-component-type.interface"; export interface GrcmDataForm { form: { id: string; classes?: string | string[]; validators?: ValidatorFn | ValidatorFn[] | null; asyncValidators?: AsyncValidatorFn | AsyncValidatorFn[] | null; updateOn?: 'change' | 'blur' | 'submit'; }; controls: { [key: string]: GrcmFormComponentType<any, any>; }; }