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 Parameter | Default type |
|---|---|
FieldName extends string | string |
OperatorName extends string | string |
ValueName extends string | string |
OperatorObj extends Option | Option<OperatorName> |
ValueObj extends Option | Option<ValueName> |
Indexable
[key: string]: unknown
Properties
className?
optionalclassName:Classname
Inherited from
BaseFullField.className
Defined in
packages/react-querybuilder/src/types/basic.ts:58
comparator?
optionalcomparator:string| (f:FullField<string,string,string,Option<string>,Option<string>>,operator:string) =>boolean
Inherited from
BaseFullField.comparator
Defined in
packages/react-querybuilder/src/types/basic.ts:116
defaultOperator?
optionaldefaultOperator:OperatorName
Inherited from
BaseFullField.defaultOperator
Defined in
packages/react-querybuilder/src/types/basic.ts:111
defaultValue?
optionaldefaultValue:any
Inherited from
BaseFullField.defaultValue
Defined in
packages/react-querybuilder/src/types/basic.ts:113
disabled?
optionaldisabled:boolean
Inherited from
Defined in
packages/react-querybuilder/src/types/options.ts:34
id?
optionalid:string
Inherited from
BaseFullField.id
Defined in
packages/react-querybuilder/src/types/basic.ts:105
inputType?
optionalinputType:null|InputType
Inherited from
BaseFullField.inputType
Defined in
packages/react-querybuilder/src/types/basic.ts:109
label
label:
string
Inherited from
Defined in
packages/react-querybuilder/src/types/options.ts:33
name
name:
FieldName
Inherited from
Defined in
packages/react-querybuilder/src/types/options.ts:31
operators?
optionaloperators:FlexibleOptionList<OperatorObj>
Inherited from
BaseFullField.operators
Defined in
packages/react-querybuilder/src/types/basic.ts:106
placeholder?
optionalplaceholder:string
Inherited from
BaseFullField.placeholder
Defined in
packages/react-querybuilder/src/types/basic.ts:114
validator?
optionalvalidator:RuleValidator
Inherited from
BaseFullField.validator
Defined in
packages/react-querybuilder/src/types/basic.ts:115
value
value:
FieldName
Inherited from
Defined in
packages/react-querybuilder/src/types/options.ts:32
valueEditorType?
optionalvalueEditorType:ValueEditorType| (operator:OperatorName) =>ValueEditorType
Inherited from
BaseFullField.valueEditorType
Defined in
packages/react-querybuilder/src/types/basic.ts:107
values?
optionalvalues:FlexibleOptionList<ValueObj>
Inherited from
BaseFullField.values
Defined in
packages/react-querybuilder/src/types/basic.ts:110
valueSources?
optionalvalueSources:ValueSources| (operator:OperatorName) =>ValueSources
Inherited from
BaseFullField.valueSources
Defined in
packages/react-querybuilder/src/types/basic.ts:108
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.