UNPKG

@codeforges/ng-forms

Version:

Angular 4+ Dynamic form builder, decorate your models to generate forms or create them manually

18 lines (17 loc) 522 B
import { FormControl } from "@angular/forms"; import { BaseInputParams } from "./BaseInputParams"; import { InputControlType } from "../InputControlType"; export declare class BaseInput { value: any; name: string; label: string; placeholder: string; required: boolean; disabled: boolean; order: number; controlType: InputControlType; private formControl; constructor(name: string, inputParams?: BaseInputParams); getFormControl(): FormControl; private buildFormControl(); }