Hex Core JS
    Preparing search index...

    Type Alias SubFormSubComponentProps<FV, T>

    type SubFormSubComponentProps<FV extends FormValues, T extends FormValues> = {
        addItem: (item?: SubFormBlankItemOrFunction<FV, T>) => void;
        blankItem: SubFormBlankItemOrFunction<FV, T>;
        canAddItem: boolean;
        canRemoveItem: boolean;
        disabled: boolean;
        formState: FormState<FV>;
        isEditingArray: boolean;
        maxItems?: number;
        minItems: number;
        numItems: number;
        removeItem: (index: number) => void;
    }

    Type Parameters

    Index

    Properties

    addItem: (item?: SubFormBlankItemOrFunction<FV, T>) => void
    canAddItem: boolean

    Indicates whether an item can be added and still keep the whole value valid with respect to count validation.

    canRemoveItem: boolean

    Indicates whether an item can be removed and still keep the whole value valid with respect to count validation.

    disabled: boolean
    formState: FormState<FV>
    isEditingArray: boolean
    maxItems?: number
    minItems: number
    numItems: number
    removeItem: (index: number) => void