NG Dynamic Forms Foundation UI
Installation
npm i @ng-dynamic-forms/ui-foundation -S
Import
@NgModule({
imports: [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 |
– |