-
Notifications
You must be signed in to change notification settings - Fork 370
Open
Labels
Description
I'm submitting a
[ ] Bug / Regression
[ ] Feature Request / Proposal
[x] Question
I'm using
NG Dynamic Forms Version: `X.Y.Z`
[ ] Basic UI
[x] Bootstrap UI
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[ ] Material
[ ] NG Bootstrap
[ ] Prime NG
Description
Hello, I'm trying to make a custom control but at some point, I didn't understand as well, if there is example it's good because the documentation not explains enough.
for the hard part I didn't get it is: in corresponding DynamicFormControlModel what should we put
?
@Input() model: /* corresponding DynamicFormControlModel */;
providers: [
{
provide: DYNAMIC_FORM_CONTROL_MAP_FN,
useValue: (model: DynamicFormControlModel): Type<DynamicFormControl> | null => {
switch (model.type) {
case /* corresponding DynamicFormControlModel */:
return MyDynamicCustomFormControlComponent;
}
}
}
]
Ventzy, undejavue, darrenmothersele, AleksMeshkov, hervehobbes and 2 more