[TLC-254] If configService present, set typeField in constructor

This commit is contained in:
Kim Shepherd
2022-05-08 12:17:38 +12:00
parent ba3069215a
commit b6cdc90d57

View File

@@ -73,6 +73,12 @@ export class FormBuilderService extends DynamicFormService {
super(componentService, validationService);
this.formModels = new Map();
this.formGroups = new Map();
// If optional config service was passed, perform an initial set of type field (default dc_type) for type binds
if (hasValue(this.configService)) {
this.setTypeBindFieldFromConfig();
}
}
createDynamicFormControlEvent(control: FormControl, group: FormGroup, model: DynamicFormControlModel, type: string): DynamicFormControlEvent {