QueryBuilderProps<RG, F, O, C>
QueryBuilderProps<
RG
,F
,O
,C
>:RG
extendsRuleGroupType
<infer R> |RuleGroupTypeIC
<infer R> ?QueryBuilderContextProps
<F
,GetOptionIdentifierType
<O
>> & {accessibleDescriptionGenerator
:AccessibleDescriptionGenerator
;addRuleToNewGroups
:boolean
;autoSelectField
:boolean
;autoSelectOperator
:boolean
;baseCombinator
:Record
<string
,unknown
>;baseField
:Record
<string
,unknown
>;baseOperator
:Record
<string
,unknown
>;combinators
:FlexibleOptionList
<C
>;context
:any
;defaultQuery
:RG
;disabled
:boolean
|Path
[];fields
:FlexibleOptionList
<F
> |BaseOptionMap
<F
,GetOptionIdentifierType
<F
>>;getDefaultField
:GetOptionIdentifierType
<F
> | (fieldsData
:FullOptionList
<F
>) =>string
;getDefaultOperator
:GetOptionIdentifierType
<O
> | (field
:GetOptionIdentifierType
<F
>,misc
: {fieldData
:F
; }) =>string
;idGenerator
: () =>string
;independentCombinators
:boolean
;listsAsArrays
:boolean
;operators
:FlexibleOptionList
<O
>;parseNumbers
:ParseNumbersPropConfig
;query
:RG
;resetOnFieldChange
:boolean
;resetOnOperatorChange
:boolean
;showCloneButtons
:boolean
;showCombinatorsBetweenRules
:boolean
;showLockButtons
:boolean
;showNotToggle
:boolean
;showShiftActions
:boolean
;suppressStandardClassnames
:boolean
;validator
:QueryValidator
;getDefaultValue
:any
;getInputType
:null
|InputType
;getOperators
:null
|FlexibleOptionList
<FullOperator
<string
>>;getRuleClassname
:Classname
;getRuleGroupClassname
:Classname
;getValueEditorSeparator
:ReactNode
;getValueEditorType
:ValueEditorType
;getValues
:FlexibleOptionList
<Option
<string
>>;getValueSources
:ValueSources
;onAddGroup
:boolean
|RG
<RG
>;onAddRule
:boolean
|RuleType
<string
,string
,any
,string
>;onLog
:void
;onMoveGroup
:boolean
|RG
<RG
>;onMoveRule
:boolean
|RG
<RG
>;onQueryChange
:void
;onRemove
:boolean
; } :never
Props for QueryBuilder.
Notes:
- Only one of
query
ordefaultQuery
should be provided. Ifquery
is present, thendefaultQuery
should be undefined and vice versa. - If rendered initially with a
query
prop, thenquery
must be defined in every subsequent render or warnings will be logged (in non-production modes only).
Type Parameters
Type Parameter | Description |
---|---|
RG extends RuleGroupTypeAny | The type of the query object, inferred from either the query or defaultQuery prop. Must extend RuleGroupType or RuleGroupTypeIC. |
F extends FullField | The field type (see Field). |
O extends FullOperator | The operator type (see Operator). |
C extends FullCombinator | The combinator type (see Combinator). |
Defined in
packages/react-querybuilder/src/types/propsUsingReact.ts:536
API documentation is generated from the latest commit on the main
branch. It may be somewhat inconsistent with official releases of React Query Builder.