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

1.4.31 • Public • Published

ng2 Dynamic Forms Foundation UI

Installation

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

Import

@NgModule({

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

export class AppModule {}

Usage

with DynamicFoundationFormComponent:

<form [formGroup]="myFormGroup">

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

with DynamicFoundationFormControlComponent:

<form [formGroup]="myFormGroup">

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

Form Controls

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

Sample

Live Demo

Dependents (1)

Package Sidebar

Install

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

Weekly Downloads

4

Version

1.4.31

License

ISC

Last publish

Collaborators

  • ng2-dynamic-forms