Interface DisplayCondition<TFieldValues>

Interface representing a condition for displaying a field based on other field values.

interface DisplayCondition<TFieldValues> {
    dependentField: Path<TFieldValues>;
    dependentFieldValue: TFieldValues[Path<TFieldValues>];
    operator: "===" | "!==" | "<" | "<=" | ">" | ">=";
    relation?: "and";
}

Type Parameters

  • TFieldValues extends FieldValues

    The type of field values.

Properties

dependentField: Path<TFieldValues>

The dependent field whose value will determine the condition.

dependentFieldValue: TFieldValues[Path<TFieldValues>]

The value of the dependent field to compare against.

operator: "===" | "!==" | "<" | "<=" | ">" | ">="

The operator used to compare the dependent field's value.

relation?: "and"

The logical relation of the condition (e.g., "and").