[go: up one dir, main page]

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

1.4.31 • Public • Published

ng2 Dynamic Forms Bootstrap UI

Installation

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

Import

@NgModule({

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

export class AppModule {}

Usage

with DynamicBootstrapFormComponent:

<form [formGroup]="myFormGroup">

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

with DynamicBootstrapFormControlComponent:

<form [formGroup]="myFormGroup">

    <dynamic-bootstrap-form-control *ngFor="let controlModel of myFormModel"
                                    [group]="myFormGroup"
                                    [model]="controlModel"></dynamic-bootstrap-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-bootstrap

Weekly Downloads

72

Version

1.4.31

License

ISC

Last publish

Collaborators

  • ng2-dynamic-forms