@resistdesign/voltra
    Preparing search index...

    Interface AutoFormProps

    Props for the AutoForm component.

    interface AutoFormProps {
        initialValues?: Partial<TypeInfoDataItem>;
        onCustomTypeAction?: (payload: CustomTypeActionPayload) => void;
        onRelationAction?: (payload: RelationActionPayload) => void;
        onSubmit: (values: FormValues) => void;
        onValuesChange?: (values: FormValues) => void;
        operation?: TypeOperation;
        submitDisabled?: boolean;
        typeInfo: TypeInfo;
    }
    Index

    Properties

    initialValues?: Partial<TypeInfoDataItem>

    Optional initial values applied before defaults.

    onCustomTypeAction?: (payload: CustomTypeActionPayload) => void

    Optional custom type action handler.

    onRelationAction?: (payload: RelationActionPayload) => void

    Optional relation action handler for reference fields.

    onSubmit: (values: FormValues) => void

    Submit handler invoked with validated form values.

    onValuesChange?: (values: FormValues) => void

    Optional change handler invoked when values update.

    operation?: TypeOperation

    Optional operation override for field state.

    submitDisabled?: boolean

    Disable the submit button when true.

    typeInfo: TypeInfo

    Type metadata used to build the form.