Skip to main content

FullField<FieldName, OperatorName, ValueName, OperatorObj, ValueObj>

Full field definition used in the fields prop of QueryBuilder. This type requires both name and value, but the fields prop itself can use a FlexibleOption where only one of name or value is required (along with label), or Field where only name and label are required.

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

Extends

  • FullOption<FieldName>.BaseFullField<FieldName, OperatorName, ValueName, OperatorObj, ValueObj>

Type parameters

Type parameterValue
FieldName extends stringstring
OperatorName extends stringstring
ValueName extends stringstring
OperatorObj extends OptionOption<OperatorName>
ValueObj extends OptionOption<ValueName>

Properties

className?

optional className: Classname

Inherited from

BaseFullField.className

Source

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


comparator?

optional comparator: string | (f, operator) => boolean

Inherited from

BaseFullField.comparator

Source

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


defaultOperator?

optional defaultOperator: OperatorName

Inherited from

BaseFullField.defaultOperator

Source

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


defaultValue?

optional defaultValue: any

Inherited from

BaseFullField.defaultValue

Source

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


disabled?

optional disabled: boolean

Inherited from

FullOption . disabled

Source

packages/react-querybuilder/src/types/options.ts:33


id?

optional id: string

Inherited from

BaseFullField.id

Source

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


inputType?

optional inputType: null | InputType

Inherited from

BaseFullField.inputType

Source

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


label

label: string

Inherited from

FullOption . label

Source

packages/react-querybuilder/src/types/options.ts:32


name

name: FieldName

Inherited from

FullOption . name

Source

packages/react-querybuilder/src/types/options.ts:30


operators?

optional operators: FlexibleOptionList<OperatorObj>

Inherited from

BaseFullField.operators

Source

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


placeholder?

optional placeholder: string

Inherited from

BaseFullField.placeholder

Source

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


validator?

optional validator: RuleValidator

Inherited from

BaseFullField.validator

Source

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


value

value: FieldName

Inherited from

FullOption . value

Source

packages/react-querybuilder/src/types/options.ts:31


valueEditorType?

optional valueEditorType: ValueEditorType | (operator) => ValueEditorType

Inherited from

BaseFullField.valueEditorType

Source

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


valueSources?

optional valueSources: ValueSources | (operator) => ValueSources

Inherited from

BaseFullField.valueSources

Source

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


values?

optional values: FlexibleOptionList<ValueObj>

Inherited from

BaseFullField.values

Source

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


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.