Interface FormFieldManager<T>

A FormFieldManager is responsible for handling a input kind, i.e. a FormField, by specifying how its input should be rendered. Implement a custom FormFieldManager and supply it to the form to add custom form fields.

interface FormFieldManager<T> {
    needCtrlToReturnSave?: boolean;
    renderField: FC<SpecificFormFieldRendererProps<T>>;
    renderValue: FC<FormFieldValueRendererProps<T>>;
    type: TypeOfField<T>;
}

Type Parameters

Properties

needCtrlToReturnSave?: boolean

Render method for rendering the input component if the field is expanded.

renderValue: FC<FormFieldValueRendererProps<T>>

Render method for rendering the value if the field is collapsed.

type: TypeOfField<T>

This value must match the FormField.type value you use for your custom form fields.