@resistdesign/voltra
    Preparing search index...

    Type Alias AutoFieldInput

    Input props for AutoField render delegation.

    type AutoFieldInput = {
        arrayItemErrorMap?: ArrayItemErrorMap;
        disabled?: boolean;
        error?: ErrorDescriptor;
        errors?: ErrorDescriptor[];
        field: TypeInfoField;
        fieldKey: string;
        onChange: (value: FieldValue) => void;
        onCustomTypeAction?: (payload: CustomTypeActionPayload) => void;
        onRelationAction?: (payload: RelationActionPayload) => void;
        translateValidationErrorCode?: (error: ErrorDescriptor) => string;
        value: FieldValue | undefined;
    }
    Index

    Properties

    arrayItemErrorMap?: ArrayItemErrorMap

    Optional per-index errors for array fields.

    disabled?: boolean

    Disables the field UI when true.

    Optional error descriptor to display under the field.

    errors?: ErrorDescriptor[]

    Optional value-level errors for the field.

    Type info describing the field to render.

    fieldKey: string

    Key that identifies the field in the form values.

    onChange: (value: FieldValue) => void

    Change handler for the field value.

    onCustomTypeAction?: (payload: CustomTypeActionPayload) => void

    Optional callback for custom type actions.

    onRelationAction?: (payload: RelationActionPayload) => void

    Optional callback for relation actions.

    translateValidationErrorCode?: (error: ErrorDescriptor) => string

    Optional translator for validation error descriptors.

    value: FieldValue | undefined

    Current value for the field.