-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
effort-2: hoursWill only take a few hours to fix/createWill only take a few hours to fix/createscope: libAnything related to the library itselfAnything related to the library itselfstate: has PRA PR is available for that issueA PR is available for that issuetype: featureThis is a new featureThis is a new feature
Description
When dealing with polymorphic data and using the remap functions it'd be nice to have a oneOf
validator. It'd take as argument keys of the formGroup
so it'd also be type safe.
And it could look like the following:
public getFormGroupControlOptions(): FormGroupOptions<YourPolymorphicForm> {
return {
validators: [NgxSubFormValidators.OneOf('prop1', 'prop2', 'prop3')],
};
}
andreElrico
Metadata
Metadata
Assignees
Labels
effort-2: hoursWill only take a few hours to fix/createWill only take a few hours to fix/createscope: libAnything related to the library itselfAnything related to the library itselfstate: has PRA PR is available for that issueA PR is available for that issuetype: featureThis is a new featureThis is a new feature