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 > |
Properties
className?
optional
className:Classname
Inherited from
BaseFullField.className
Defined in
packages/react-querybuilder/src/types/basic.ts:58
comparator?
optional
comparator:string
| (f
,operator
) =>boolean
Inherited from
BaseFullField.comparator
Defined in
packages/react-querybuilder/src/types/basic.ts:116
defaultOperator?
optional
defaultOperator:OperatorName
Inherited from
BaseFullField.defaultOperator
Defined in
packages/react-querybuilder/src/types/basic.ts:111
defaultValue?
optional
defaultValue:any
Inherited from
BaseFullField.defaultValue
Defined in
packages/react-querybuilder/src/types/basic.ts:113
disabled?
optional
disabled:boolean
Inherited from
Defined in
packages/react-querybuilder/src/types/options.ts:33
id?
optional
id:string
Inherited from
BaseFullField.id
Defined in
packages/react-querybuilder/src/types/basic.ts:105
inputType?
optional
inputType: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:32
name
name:
FieldName
Inherited from
Defined in
packages/react-querybuilder/src/types/options.ts:30
operators?
optional
operators:FlexibleOptionList
<OperatorObj
>
Inherited from
BaseFullField.operators
Defined in
packages/react-querybuilder/src/types/basic.ts:106
placeholder?
optional
placeholder:string
Inherited from
BaseFullField.placeholder
Defined in
packages/react-querybuilder/src/types/basic.ts:114
validator?
optional
validator: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:31
valueEditorType?
optional
valueEditorType:ValueEditorType
| (operator
) =>ValueEditorType
Inherited from
BaseFullField.valueEditorType
Defined in
packages/react-querybuilder/src/types/basic.ts:107
values?
optional
values:FlexibleOptionList
<ValueObj
>
Inherited from
BaseFullField.values
Defined in
packages/react-querybuilder/src/types/basic.ts:110
valueSources?
optional
valueSources:ValueSources
| (operator
) =>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.