form-generic.abstract.d.ts 813 B

123456789101112131415161718
  1. import { ControlValueAccessor, FormControl, FormGroupDirective } from '@angular/forms';
  2. export declare abstract class FormGenericComponent implements ControlValueAccessor {
  3. protected formGroupDirective: FormGroupDirective;
  4. private onChange;
  5. private onTouched;
  6. private readonly changeDetectorRef;
  7. abstract formControlName: string;
  8. constructor(formGroupDirective: FormGroupDirective);
  9. hasErrors(formControl: FormControl): boolean;
  10. get formControl(): FormControl<any>;
  11. registerOnChange(fn: (value: any) => void): void;
  12. registerOnTouched(fn: () => void): void;
  13. protected triggerChange(value: any): void;
  14. protected triggerTouched(): void;
  15. protected triggerMarkCheck(): void;
  16. protected triggerChangeDetection(): void;
  17. abstract writeValue(value: any): void;
  18. }