@resistdesign/voltra
    Preparing search index...

    Interface AutoFieldProps

    Props for the AutoField component.

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

    Properties

    arrayItemErrorMap?: ArrayItemErrorMap

    Optional per-index errors for array fields.

    disabled?: boolean

    Disables the field UI when true.

    Optional primary error descriptor for convenience/backward compatibility.

    errors?: ErrorDescriptor[]

    Optional list of 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: LiteralValue | LiteralValue[]) => 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?: TranslateValidationErrorCode

    Optional translator from error descriptor to user-facing message.

    value: LiteralValue | LiteralValue[] | undefined

    Current value for the field.