UNPKG

angular2-schema-form

Version:

Angular2 Schema Form (DISCLAIMER: it is not related to angular-schema-form)

21 lines (20 loc) 734 B
import { AfterViewInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { ArrayProperty, FormProperty, ObjectProperty } from './model'; export declare abstract class Widget<T extends FormProperty> { formProperty: T; control: FormControl; errorMessages: string[]; id: string; name: string; schema: any; } export declare class ControlWidget extends Widget<FormProperty> implements AfterViewInit { ngAfterViewInit(): void; } export declare class ArrayLayoutWidget extends Widget<ArrayProperty> implements AfterViewInit { ngAfterViewInit(): void; } export declare class ObjectLayoutWidget extends Widget<ObjectProperty> implements AfterViewInit { ngAfterViewInit(): void; }