ngx-form-control
Version:
Form controls for angular 6
34 lines (33 loc) • 1.08 kB
TypeScript
import { EventEmitter } from '@angular/core';
import { NgModel, ValidationErrors } from '@angular/forms';
import { BaseControlComponent } from '../../utils/base-control.component';
export declare class FormInputComponent extends BaseControlComponent {
type: string;
pattern: string;
readonly: boolean;
autocomplete: boolean;
minlength: number;
maxlength: number;
trimResult: boolean;
minLengthErrorMessage: string;
patternErrorMessage: string;
matchErrorMessage: string;
customInput: NgModel;
match: string;
focus: EventEmitter<any>;
blur: EventEmitter<any>;
private _innerValue;
private _match;
value: string;
readonly hasMatchError: boolean;
readonly hasPatternError: boolean;
readonly hasMinLengthError: boolean;
readonly invalid: boolean;
readonly valid: boolean;
readonly errorMessages: Array<string>;
writeValue(value: string): void;
validate(): ValidationErrors;
reset(): void;
onFocus(event: any): void;
onBlur(event: any): void;
}