npm i @danielhokanson/ng-dynamic-forms-ui-ngx-bootstrap -S
@NgModule({
imports: [DynamicFormsNGxBootstrapUIModule]
})
export class AppModule {}
with DynamicNGxBootstrapFormComponent
:
<form [formGroup]="myFormGroup">
<dynamic-ngx-bootstrap-form [group]="myFormGroup"
[model]="myFormModel"></dynamic-ngx-bootstrap-form>
</form>
with DynamicNGxBootstrapFormControlComponent
:
<form [formGroup]="myFormGroup">
<dynamic-ngx-bootstrap-form-control *ngFor="let controlModel of myFormModel"
[group]="myFormGroup"
[model]="controlModel"></dynamic-ngx-bootstrap-form-control>
</form>
Control | Model | Required Property |
---|---|---|
Checkbox | DynamicCheckboxModel |
– |
Checkbox Group | DynamicCheckboxGroupModel |
– |
Datepicker | DynamicDatePickerModel |
– |
Input | DynamicInputModel |
– |
Radio Group | DynamicRadioGroupModel |
– |
Rating | DynamicRatingModel |
– |
Select | DynamicSelectModel |
– |
TextArea | DynamicTextAreaModel |
– |
Timepicker | DynamicTimePickerModel |
– |