@ng2-dynamic-forms/ui-basic
v1.4.31
Published
Basic UI package for ng2 Dynamic Forms
Downloads
161
Maintainers
Readme
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
| – |