@bsachref/ng-form
Version:
A dynamic form component for Angular using PrimeNG or Angular Material
13 lines (12 loc) • 827 B
TypeScript
import { AbstractControl, ValidationErrors } from '@angular/forms';
import { FormControlConfig } from '../formControlConfig';
import * as i0 from "@angular/core";
export declare class ValidationMessagesComponent {
control: AbstractControl | null;
controlName: string;
config: FormControlConfig;
getValidatorValue(validatorName: keyof ValidationErrors, key: string): any;
getCustomErrorMessage(): string | null;
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationMessagesComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationMessagesComponent, "validation-messages", never, { "control": { "alias": "control"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
}