@stratio/egeo
Version:
Stratio egeo library of components in Angular 2
27 lines (26 loc) • 892 B
TypeScript
import { OnInit } from '@angular/core';
import { ControlValueAccessor, FormControl } from '@angular/forms';
import { StInputError } from '../../st-input/st-input.error.model';
export declare class StFormFieldComponent implements ControlValueAccessor, OnInit {
schema: any;
required: boolean;
formControl: FormControl;
errorMessages: StInputError;
type: string;
private registeredOnChange;
constructor();
ngOnInit(): void;
writeValue(value: any): void;
registerOnChange(fn: (_: any) => void): void;
registerOnTouched(fn: () => void): void;
onChange(value: any): void;
readonly min: number;
readonly max: number;
readonly name: string;
readonly label: string;
readonly placeholder: string;
readonly description: string;
readonly minLength: number;
readonly maxLength: number;
hasType(type: string): boolean;
}