You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AutoFormFieldDate, AutoFormFieldEnum, etc. repeat FormField/FormItem/FormLabel structure in each file, but there is no need to do it. It's better to place it all in one "form field" wrapper (see example), which can have any component inside <FormControl>.
component in field-config is mapped to INPUT_COMPONENTS in AutoFormField and it limits component only to pre-defined values. It would be great to be able to use any component without changing INPUT_COMPONENTS.
AutoFormFieldEnum has a v-if="config?.component === 'radio'" to switch between <RadioGroup> and <Select>. But what if I want to use <ButtonGroup> or something else?
Additional information
I intend to submit a PR for this feature.
I have already implemented and/or tested this feature.
The text was updated successfully, but these errors were encountered:
Describe the feature
<FormControl>
.component
infield-config
is mapped toINPUT_COMPONENTS
in AutoFormField and it limits component only to pre-defined values. It would be great to be able to use any component without changingINPUT_COMPONENTS
.v-if="config?.component === 'radio'"
to switch between<RadioGroup>
and<Select>
. But what if I want to use<ButtonGroup>
or something else?Additional information
The text was updated successfully, but these errors were encountered: