@resistdesign/voltra
    Preparing search index...

    Interface AutoFieldProps

    Props for the AutoField component.

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

    Properties

    disabled?: boolean

    Disables the field UI when true.

    error?: string

    Optional error message to display under 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.

    value: LiteralValue | LiteralValue[] | undefined

    Current value for the field.