@uex/web-extensions
Version:
## Installation
32 lines (31 loc) • 1.02 kB
TypeScript
import { ElementRef, OnInit, AfterViewInit } from '@angular/core';
import { AbstractControl } from '@angular/forms';
import { FormData } from '../classes/data';
import { FormSchema } from '../classes/schema';
export declare abstract class BaseComponent<T> implements OnInit, AfterViewInit {
elementRef: ElementRef;
form: FormData;
schema: FormSchema;
constructor();
ngOnInit(): void;
ngAfterViewInit(): void;
onReset(): void;
onValueSetted(new_value: T): void;
value: T;
readonly errors: any;
setErrors(errors: any): void;
control: AbstractControl;
clear(): void;
isRequired(): boolean;
isRequiredTrue(): boolean;
hasError(): boolean;
formatErrors(): string;
getErrorMessage(key: string, error: any): string;
onKeydown(event?: any): void;
onKeyup(event?: any): void;
onKeypress(event?: any): void;
onChange(event?: any): void;
onFocus(event?: any): void;
onBlur(event?: any): void;
protected setNativeElement(): void;
}