Skip to main content

Field<FieldName, OperatorName, ValueName, OperatorObj>

Field<FieldName, OperatorName, ValueName, OperatorObj>: WithUnknownIndex<object & Pick<BaseFullField<FieldName, OperatorName, ValueName, OperatorObj>, Exclude<keyof BaseFullField, "value">>>

Field definition used in the fields prop of QueryBuilder. This type is an extension of FullField where only name and label are required.

The name/value, operators, and values properties of this interface can be narrowed with generics.

Type Parameters

Type ParameterDefault type
FieldName extends stringstring
OperatorName extends stringstring
ValueName extends stringstring
OperatorObj extends OptionOption<OperatorName>

Defined in

packages/react-querybuilder/src/types/basic.ts:146


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.