SchemaNative<F, O>
Defined in: packages/native/src/types.ts:30
Configuration options passed in the schema
prop from
QueryBuilder to each subcomponent.
Extends
Schema
<F
,O
>.WithOptionalStyleSheets
Type Parameters
Type Parameter |
---|
F extends FullField |
O extends string |
Properties
accessibleDescriptionGenerator
accessibleDescriptionGenerator:
AccessibleDescriptionGenerator
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:364
Inherited from
Schema
.accessibleDescriptionGenerator
addRuleToNewGroups
addRuleToNewGroups:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:372
Inherited from
autoSelectField
autoSelectField:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:370
Inherited from
autoSelectOperator
autoSelectOperator:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:371
Inherited from
classNames
classNames:
Classnames
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:349
Inherited from
combinators
combinators:
FullCombinator
[] |OptionGroup
<FullCombinator
>[]
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:350
Inherited from
controls
controls:
Required
<SetNonNullable
<Partial
<{actionElement
:ComponentType
<ActionProps
>;addGroupAction
:null
|ComponentType
<ActionWithRulesAndAddersProps
>;addRuleAction
:null
|ComponentType
<ActionWithRulesAndAddersProps
>;cloneGroupAction
:null
|ComponentType
<ActionWithRulesProps
>;cloneRuleAction
:null
|ComponentType
<ActionProps
>;combinatorSelector
:null
|ComponentType
<CombinatorSelectorProps
>;dragHandle
:null
|ForwardRefExoticComponent
<DragHandleProps
&RefAttributes
<HTMLElement
>>;fieldSelector
:null
|ComponentType
<FieldSelectorProps
<F
>>;inlineCombinator
:null
|ComponentType
<InlineCombinatorProps
>;lockGroupAction
:null
|ComponentType
<ActionWithRulesProps
>;lockRuleAction
:null
|ComponentType
<ActionWithRulesProps
>;notToggle
:null
|ComponentType
<NotToggleProps
>;operatorSelector
:null
|ComponentType
<OperatorSelectorProps
>;removeGroupAction
:null
|ComponentType
<ActionWithRulesProps
>;removeRuleAction
:null
|ComponentType
<ActionProps
>;rule
:ComponentType
<RuleProps
>;ruleGroup
:ComponentType
<RuleGroupProps
<F
,O
>>;ruleGroupBodyElements
:ComponentType
<RuleGroupProps
<{[key: string]
:unknown
;disabled
:boolean
;label
:string
;name
:string
;value
:string
; }> & {actions
:QueryActions
;combinator
:string
;context
:any
;disabled
:boolean
;dragMonitorId
:string
|symbol
;dragRef
:Ref
<HTMLSpanElement
>;dropEffect
:DropEffect
;dropMonitorId
:string
|symbol
;dropRef
:Ref
<HTMLDivElement
>;id
:string
;isDragging
:boolean
;isOver
:boolean
;not
:boolean
;parentDisabled
:boolean
;path
:Path
;previewRef
:Ref
<HTMLDivElement
>;rules
:RuleOrGroupArray
;schema
:Schema
<{[key: string]
:unknown
;disabled
:boolean
;label
:string
;name
:string
;value
:string
; },string
>;shiftDownDisabled
:boolean
;shiftUpDisabled
:boolean
;translations
:Translations
; } & {accessibleDescription
:string
;addGroup
:ActionElementEventHandler
;addRule
:ActionElementEventHandler
;classNames
:Pick
<{actionElement
:string
;addGroup
:string
;addRule
:string
;betweenRules
:string
;body
:string
;branches
:string
;cloneGroup
:string
;cloneRule
:string
;combinators
:string
;disabled
:string
;dndCopy
:string
;dndDragging
:string
;dndOver
:string
;dragHandle
:string
;fields
:string
;header
:string
;invalid
:string
;lockGroup
:string
;lockRule
:string
;notToggle
:string
;operators
:string
;queryBuilder
:string
;removeGroup
:string
;removeRule
:string
;rule
:string
;ruleGroup
:string
;shiftActions
:string
;valid
:string
;value
:string
;valueListItem
:string
;valueSelector
:string
;valueSource
:string
; },"removeGroup"
|"addRule"
|"addGroup"
|"combinators"
|"notToggle"
|"dragHandle"
|"lockGroup"
|"shiftActions"
|"body"
|"header"
|"cloneGroup"
>;cloneGroup
:ActionElementEventHandler
;onCombinatorChange
:ValueChangeEventHandler
;onGroupAdd
: (group
:RuleGroupTypeAny
,parentPath
:Path
,context
?:any
) =>void
;onIndependentCombinatorChange
: (value
:any
,index
:number
,context
?:any
) =>void
;onNotToggleChange
: (checked
:boolean
,context
?:any
) =>void
;outerClassName
:string
;pathsMemo
: {disabled
:boolean
;path
:Path
; }[];removeGroup
:ActionElementEventHandler
;ruleGroup
:RuleGroupType
|RuleGroupTypeIC
;shiftGroupDown
: (event
?:MouseEvent
,context
?:any
) =>void
;shiftGroupUp
: (event
?:MouseEvent
,context
?:any
) =>void
;toggleLockGroup
:ActionElementEventHandler
;validationClassName
:string
;validationResult
:boolean
|ValidationResult
; }>;ruleGroupHeaderElements
:ComponentType
<RuleGroupProps
<{[key: string]
:unknown
;disabled
:boolean
;label
:string
;name
:string
;value
:string
; }> & {actions
:QueryActions
;combinator
:string
;context
:any
;disabled
:boolean
;dragMonitorId
:string
|symbol
;dragRef
:Ref
<HTMLSpanElement
>;dropEffect
:DropEffect
;dropMonitorId
:string
|symbol
;dropRef
:Ref
<HTMLDivElement
>;id
:string
;isDragging
:boolean
;isOver
:boolean
;not
:boolean
;parentDisabled
:boolean
;path
:Path
;previewRef
:Ref
<HTMLDivElement
>;rules
:RuleOrGroupArray
;schema
:Schema
<{[key: string]
:unknown
;disabled
:boolean
;label
:string
;name
:string
;value
:string
; },string
>;shiftDownDisabled
:boolean
;shiftUpDisabled
:boolean
;translations
:Translations
; } & {accessibleDescription
:string
;addGroup
:ActionElementEventHandler
;addRule
:ActionElementEventHandler
;classNames
:Pick
<{actionElement
:string
;addGroup
:string
;addRule
:string
;betweenRules
:string
;body
:string
;branches
:string
;cloneGroup
:string
;cloneRule
:string
;combinators
:string
;disabled
:string
;dndCopy
:string
;dndDragging
:string
;dndOver
:string
;dragHandle
:string
;fields
:string
;header
:string
;invalid
:string
;lockGroup
:string
;lockRule
:string
;notToggle
:string
;operators
:string
;queryBuilder
:string
;removeGroup
:string
;removeRule
:string
;rule
:string
;ruleGroup
:string
;shiftActions
:string
;valid
:string
;value
:string
;valueListItem
:string
;valueSelector
:string
;valueSource
:string
; },"removeGroup"
|"addRule"
|"addGroup"
|"combinators"
|"notToggle"
|"dragHandle"
|"lockGroup"
|"shiftActions"
|"body"
|"header"
|"cloneGroup"
>;cloneGroup
:ActionElementEventHandler
;onCombinatorChange
:ValueChangeEventHandler
;onGroupAdd
: (group
:RuleGroupTypeAny
,parentPath
:Path
,context
?:any
) =>void
;onIndependentCombinatorChange
: (value
:any
,index
:number
,context
?:any
) =>void
;onNotToggleChange
: (checked
:boolean
,context
?:any
) =>void
;outerClassName
:string
;pathsMemo
: {disabled
:boolean
;path
:Path
; }[];removeGroup
:ActionElementEventHandler
;ruleGroup
:RuleGroupType
|RuleGroupTypeIC
;shiftGroupDown
: (event
?:MouseEvent
,context
?:any
) =>void
;shiftGroupUp
: (event
?:MouseEvent
,context
?:any
) =>void
;toggleLockGroup
:ActionElementEventHandler
;validationClassName
:string
;validationResult
:boolean
|ValidationResult
; }>;shiftActions
:null
|ComponentType
<ShiftActionsProps
>;valueEditor
:null
|ComponentType
<ValueEditorProps
<F
,O
>>;valueSelector
:ComponentType
<ValueSelectorProps
<{[key: string]
:unknown
;disabled
:boolean
;label
:string
;name
:string
;value
:string
; }>>;valueSourceSelector
:null
|ComponentType
<ValueSourceSelectorProps
>; }>,"notToggle"
|"dragHandle"
|"valueSourceSelector"
|"ruleGroup"
|"rule"
|"shiftActions"
|"actionElement"
|"addGroupAction"
|"addRuleAction"
|"cloneGroupAction"
|"cloneRuleAction"
|"combinatorSelector"
|"fieldSelector"
|"inlineCombinator"
|"lockGroupAction"
|"lockRuleAction"
|"operatorSelector"
|"removeGroupAction"
|"removeRuleAction"
|"ruleGroupBodyElements"
|"ruleGroupHeaderElements"
|"valueEditor"
|"valueSelector"
>>
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:351
Inherited from
disabledPaths
disabledPaths:
Path
[]
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:378
Inherited from
enableDragAndDrop
enableDragAndDrop:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:373
Inherited from
fieldMap
fieldMap:
Partial
<Record
<GetOptionIdentifierType
<F
>,F
>>
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:348
Inherited from
fields
fields:
FullOptionList
<F
>
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:347
Inherited from
independentCombinators
independentCombinators:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:375
Inherited from
listsAsArrays
listsAsArrays:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:376
Inherited from
parseNumbers
parseNumbers:
ParseNumbersPropConfig
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:377
Inherited from
qbId
qbId:
string
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:346
Inherited from
showCloneButtons
showCloneButtons:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:368
Inherited from
showCombinatorsBetweenRules
showCombinatorsBetweenRules:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:365
Inherited from
Schema
.showCombinatorsBetweenRules
showLockButtons
showLockButtons:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:369
Inherited from
showNotToggle
showNotToggle:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:366
Inherited from
showShiftActions
showShiftActions:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:367
Inherited from
styles?
optional
styles:WrapEachPropertyInStyleProp
<QueryBuilderNativeStyles
>
Defined in: packages/native/src/types.ts:27
Inherited from
WithOptionalStyleSheets.styles
suppressStandardClassnames
suppressStandardClassnames:
boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:379
Inherited from
Schema
.suppressStandardClassnames
validationMap
validationMap:
ValidationMap
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:374
Inherited from
Methods
createRule()
createRule():
RuleType
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:352
Returns
Inherited from
createRuleGroup()
createRuleGroup(
ic
?:boolean
):RuleGroupTypeAny
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:353
Parameters
Parameter | Type |
---|---|
ic ? | boolean |
Returns
Inherited from
dispatchQuery()
dispatchQuery(
query
:RuleGroupTypeAny
):void
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:354
Parameters
Parameter | Type |
---|---|
query | RuleGroupTypeAny |
Returns
void
Inherited from
getInputType()
getInputType(
field
:string
,operator
:string
,meta
: {fieldData
:F
; }):null
|InputType
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:360
Parameters
Parameter | Type |
---|---|
field | string |
operator | string |
meta | { fieldData : F ; } |
meta.fieldData | F |
Returns
null
| InputType
Inherited from
getOperators()
getOperators(
field
:string
,meta
: {fieldData
:F
; }):FullOperator
[] |OptionGroup
<FullOperator
>[]
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:356
Parameters
Parameter | Type |
---|---|
field | string |
meta | { fieldData : F ; } |
meta.fieldData | F |
Returns
FullOperator
[] | OptionGroup
<FullOperator
>[]
Inherited from
getQuery()
getQuery():
undefined
|RuleGroupTypeAny
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:355
Returns
undefined
| RuleGroupTypeAny
Inherited from
getRuleClassname()
getRuleClassname(
rule
:RuleType
,misc
: {fieldData
:F
; }):Classname
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:362
Parameters
Parameter | Type |
---|---|
rule | RuleType |
misc | { fieldData : F ; } |
misc.fieldData | F |
Returns
Inherited from
getRuleGroupClassname()
getRuleGroupClassname(
ruleGroup
:RuleGroupTypeAny
):Classname
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:363
Parameters
Parameter | Type |
---|---|
ruleGroup | RuleGroupTypeAny |
Returns
Inherited from
getValueEditorSeparator()
getValueEditorSeparator(
field
:string
,operator
:string
,meta
: {fieldData
:F
; }):ReactNode
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:358
Parameters
Parameter | Type |
---|---|
field | string |
operator | string |
meta | { fieldData : F ; } |
meta.fieldData | F |
Returns
ReactNode
Inherited from
Schema
.getValueEditorSeparator
getValueEditorType()
getValueEditorType(
field
:string
,operator
:string
,meta
: {fieldData
:F
; }):ValueEditorType
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:357
Parameters
Parameter | Type |
---|---|
field | string |
operator | string |
meta | { fieldData : F ; } |
meta.fieldData | F |
Returns
Inherited from
getValues()
getValues(
field
:string
,operator
:string
,meta
: {fieldData
:F
; }):WithUnknownIndex
<{[key: string]
:unknown
;disabled
:boolean
;label
:string
;name
:string
;value
:string
; } & {[key: string]
:unknown
;disabled
:boolean
;label
:string
;name
:string
;value
:string
; }>[] |OptionGroup
<WithUnknownIndex
<{[key: string]
:unknown
;disabled
:boolean
;label
:string
;name
:string
;value
:string
; } & {[key: string]
:unknown
;disabled
:boolean
;label
:string
;name
:string
;value
:string
; }>>[]
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:361
Parameters
Parameter | Type |
---|---|
field | string |
operator | string |
meta | { fieldData : F ; } |
meta.fieldData | F |
Returns
WithUnknownIndex
<{ [key: string]
: unknown
; disabled
: boolean
; label
: string
; name
: string
; value
: string
; } & { [key: string]
: unknown
; disabled
: boolean
; label
: string
; name
: string
; value
: string
; }>[] | OptionGroup
<WithUnknownIndex
<{ [key: string]
: unknown
; disabled
: boolean
; label
: string
; name
: string
; value
: string
; } & { [key: string]
: unknown
; disabled
: boolean
; label
: string
; name
: string
; value
: string
; }>>[]
Inherited from
getValueSources()
getValueSources(
field
:string
,operator
:string
,meta
: {fieldData
:F
; }):ValueSources
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:359
Parameters
Parameter | Type |
---|---|
field | string |
operator | string |
meta | { fieldData : F ; } |
meta.fieldData | F |
Returns
Inherited from
API documentation is generated from the latest commit on the main
branch. It may be somewhat inconsistent with official releases of React Query Builder.