UNPKG

@asi-ngtools/lib

Version:

This project is a little components library, simple to use, which will help you to simplify your project.

27 lines (26 loc) 1.02 kB
import { FormControl, FormGroupDirective } from '@angular/forms'; import { Injector } from '@angular/core'; import { AsiMessage } from './asi-message.directive'; import { ElementRef, OnInit, AfterContentInit, QueryList } from '@angular/core'; export declare class AsiErrorMessages implements OnInit, AfterContentInit { private element; private formGroupDirective; private injector; /** link the error messages to a formControl */ for: FormControl; /** link the error messages to a formControl by is name */ forName: string; /** Display error one by one */ showOne: boolean; messages: QueryList<AsiMessage>; errorMessages: Array<AsiMessage>; submitted: boolean; constructor(element: ElementRef, formGroupDirective: FormGroupDirective, injector: Injector); ngOnInit(): void; ngAfterContentInit(): void; isFieldRequired(): boolean; /** * Methode appellée à chaque changement de l'entré du composant "for" */ onStatusChange(): void; }