@ng2-dynamic-forms/ui-basic
TypeScript icon, indicating that this package has built-in type declarations

1.4.31 • Public • Published

ng2 Dynamic Forms Basic UI

Installation

npm install @ng2-dynamic-forms/ui-basic -S

Import

@NgModule({

    imports: [
        // ...
        ReactiveFormsModule,
        DynamicFormsCoreModule.forRoot(),
        DynamicFormsBasicUIModule
    ]
})

export class AppModule {}

Usage

with DynamicBasicFormComponent:

<form [formGroup]="myFormGroup">

    <dynamic-basic-form [group]="myFormGroup"
                        [model]="myFormModel"></dynamic-basic-form>
</form>

with DynamicBasicFormControlComponent:

<form [formGroup]="myFormGroup">

    <dynamic-basic-form-control *ngFor="let controlModel of myFormModel"
                                [group]="myFormGroup"
                                [model]="controlModel"></dynamic-basic-form-control>
</form>

Form Controls

Control Model Required Property
Checkbox DynamicCheckboxModel
Checkbox Group DynamicCheckboxGroupModel
Input DynamicInputModel
Radio Group DynamicRadioGroupModel
Select DynamicSelectModel
TextArea DynamicTextAreaModel

Sample

Live Demo

Package Sidebar

Install

npm i @ng2-dynamic-forms/ui-basic

Weekly Downloads

4

Version

1.4.31

License

ISC

Last publish

Collaborators

  • ng2-dynamic-forms