MatchModeEditorProps
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:160
Props for matchModeEditor
components.
Extends
BaseSelectorProps
<FullOption
>.CommonRuleSubComponentProps
Methods
handleOnChange()
handleOnChange(
value
:any
):void
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:112
Parameters
Parameter | Type |
---|---|
value | any |
Returns
void
Inherited from
BaseSelectorProps.handleOnChange
Properties
className?
optional
className:string
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:67
CSS classNames to be applied.
This is string
and not Classname because the Rule
and RuleGroup components run clsx()
to produce the className
that gets passed to each subcomponent.
Inherited from
BaseSelectorProps.className
classNames
classNames: {
matchMode
:string
;matchThreshold
:string
; }
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:166
matchMode
matchMode:
string
matchThreshold
matchThreshold:
string
context?
optional
context:any
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:88
Container for custom props that are passed to all components.
Inherited from
BaseSelectorProps.context
disabled?
optional
disabled:boolean
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:83
Disables the control.
Inherited from
BaseSelectorProps.disabled
field
field:
string
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:168
fieldData
fieldData: {[
key
:string
]:unknown
;className?
:Classname
;comparator?
:string
| (f
: {[key
:string
]:unknown
;className?
:Classname
;comparator?
: string | ((f: { [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined; ... 11 more ...; className?: Cl...;defaultOperator?
:string
;defaultValue?
:any
;disabled?
:boolean
;id?
:string
;inputType?
:null
|InputType
;label
:string
;matchModes?
:boolean
|MatchMode
[] |FlexibleOption
<MatchMode
>[];name
:string
;operators?
:FlexibleOptionList
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:string
;value
:string
; }>;placeholder?
:string
;subproperties?
:FlexibleOptionList
<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined; ... 11 more ...; className?: Classname | unde...>;validator?
:RuleValidator
;value
:string
;valueEditorType?
:ValueEditorType
| (operator
:string
) =>ValueEditorType
;values?
:FlexibleOptionList
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:string
;value
:string
; }>;valueSources?
:ValueSources
|ValueSourceFlexibleOptions
| (operator
:string
) => ValueSources | ValueSourceFlexibleOptions; },operator
:string
) =>boolean
;defaultOperator?
:string
;defaultValue?
:any
;disabled?
:boolean
;id?
:string
;inputType?
:null
|InputType
;label
:string
;matchModes?
:boolean
|MatchMode
[] |FlexibleOption
<MatchMode
>[];name
:string
;operators?
:FlexibleOptionList
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:string
;value
:string
; }>;placeholder?
:string
;subproperties?
:FlexibleOptionList
<{[key
:string
]:unknown
;className?
: Classname | undefined;comparator?
:string
| (f
: { [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined; ... 11 more ...; className?: Classname | unde...,operator
:string
) =>boolean
;defaultOperator?
:string
;defaultValue?
:any
;disabled?
:boolean
;id?
:string
;inputType?
: InputType | null | undefined;label
:string
;matchModes?
:boolean
|MatchMode
[] |FlexibleOption
<MatchMode
>[];name
:string
;operators?
: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined;placeholder?
:string
;subproperties?
: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined; ... 11 more ...; className...;validator?
:RuleValidator
;value
:string
;valueEditorType?
: ValueEditorType | ((operator: string) => ValueEditorType) | undefined;values?
: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined;valueSources?
: ValueSources | ValueSourceFlexibleOptions | ((operator: string) => ValueSources | ValueSourceFlexibleOptions) | undefined; }>;validator?
:RuleValidator
;value
:string
;valueEditorType?
:ValueEditorType
| (operator
:string
) =>ValueEditorType
;values?
:FlexibleOptionList
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:string
;value
:string
; }>;valueSources?
:ValueSources
|ValueSourceFlexibleOptions
| (operator
:string
) => ValueSources | ValueSourceFlexibleOptions; }
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:169
Index Signature
[key
: string
]: unknown
className?
optional
className:Classname
comparator?
optional
comparator:string
| (f
: {[key
:string
]:unknown
;className?
:Classname
;comparator?
: string | ((f: { [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined; ... 11 more ...; className?: Cl...;defaultOperator?
:string
;defaultValue?
:any
;disabled?
:boolean
;id?
:string
;inputType?
:null
|InputType
;label
:string
;matchModes?
:boolean
|MatchMode
[] |FlexibleOption
<MatchMode
>[];name
:string
;operators?
:FlexibleOptionList
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:string
;value
:string
; }>;placeholder?
:string
;subproperties?
:FlexibleOptionList
<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined; ... 11 more ...; className?: Classname | unde...>;validator?
:RuleValidator
;value
:string
;valueEditorType?
:ValueEditorType
| (operator
:string
) =>ValueEditorType
;values?
:FlexibleOptionList
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:string
;value
:string
; }>;valueSources?
:ValueSources
|ValueSourceFlexibleOptions
| (operator
:string
) => ValueSources | ValueSourceFlexibleOptions; },operator
:string
) =>boolean
defaultOperator?
optional
defaultOperator:string
defaultValue?
optional
defaultValue:any
disabled?
optional
disabled:boolean
id?
optional
id:string
inputType?
optional
inputType:null
|InputType
label
label:
string
matchModes?
optional
matchModes:boolean
|MatchMode
[] |FlexibleOption
<MatchMode
>[]
name
name:
string
operators?
optional
operators:FlexibleOptionList
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:string
;value
:string
; }>
placeholder?
optional
placeholder:string
subproperties?
optional
subproperties:FlexibleOptionList
<{[key
:string
]:unknown
;className?
: Classname | undefined;comparator?
:string
| (f
: { [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined; ... 11 more ...; className?: Classname | unde...,operator
:string
) =>boolean
;defaultOperator?
:string
;defaultValue?
:any
;disabled?
:boolean
;id?
:string
;inputType?
: InputType | null | undefined;label
:string
;matchModes?
:boolean
|MatchMode
[] |FlexibleOption
<MatchMode
>[];name
:string
;operators?
: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined;placeholder?
:string
;subproperties?
: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined; ... 11 more ...; className...;validator?
:RuleValidator
;value
:string
;valueEditorType?
: ValueEditorType | ((operator: string) => ValueEditorType) | undefined;values?
: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined;valueSources?
: ValueSources | ValueSourceFlexibleOptions | ((operator: string) => ValueSources | ValueSourceFlexibleOptions) | undefined; }>
Properties of items in the value.
validator?
optional
validator:RuleValidator
value
value:
string
valueEditorType?
optional
valueEditorType:ValueEditorType
| (operator
:string
) =>ValueEditorType
values?
optional
values:FlexibleOptionList
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:string
;value
:string
; }>
valueSources?
optional
valueSources:ValueSources
|ValueSourceFlexibleOptions
| (operator
:string
) => ValueSources | ValueSourceFlexibleOptions
level
level:
number
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:75
The level of the current group. Always equal to path.length
.
Inherited from
BaseSelectorProps.level
match
match:
MatchConfig
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:163
numericEditorComponent?
optional
numericEditorComponent:ComponentType
<ValueEditorProps
<{[key
:string
]:unknown
;className?
: Classname | undefined;comparator?
:string
| (f
: { [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined; ... 11 more ...; className?: Classname | unde...,operator
:string
) =>boolean
;defaultOperator?
:string
;defaultValue?
:any
;disabled?
:boolean
;id?
:string
;inputType?
: InputType | null | undefined;label
:string
;matchModes?
:boolean
|MatchMode
[] |FlexibleOption
<MatchMode
>[];name
:string
;operators?
: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined;placeholder?
:string
;subproperties?
: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; id?: string | undefined; operators?: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined; ... 11 more ...; className...;validator?
:RuleValidator
;value
:string
;valueEditorType?
: ValueEditorType | ((operator: string) => ValueEditorType) | undefined;values?
: FlexibleOptionList<{ [x: string]: unknown; label: string; disabled?: boolean | undefined; name: string; value: string; }> | undefined;valueSources?
: ValueSources | ValueSourceFlexibleOptions | ((operator: string) => ValueSources | ValueSourceFlexibleOptions) | undefined; },string
>>
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:165
options
options: {[
key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:MatchMode
;value
:MatchMode
; }[] |OptionGroup
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:MatchMode
;value
:MatchMode
; }>[]
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:167
Overrides
BaseSelectorProps.options
path
path:
Path
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:71
Path to this subcomponent's rule/group within the query.
Inherited from
BaseSelectorProps.path
rule
rule:
RuleType
Defined in: packages/react-querybuilder/src/types/props.ts:11
Inherited from
CommonRuleSubComponentProps
.rule
schema
schema:
Schema
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:string
;value
:string
; },string
>
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:100
All subcomponents receive the configuration schema as a prop.
Inherited from
BaseSelectorProps.schema
selectorComponent?
optional
selectorComponent:ComponentType
<ValueSelectorProps
<{[key
:string
]:unknown
;disabled?
:boolean
;label
:string
;name
:string
;value
:string
; }>>
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:164
testID?
optional
testID:string
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:96
Test ID for this component.
Inherited from
BaseSelectorProps.testID
title?
optional
title:string
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:79
The title/tooltip for this control.
Inherited from
BaseSelectorProps.title
validation?
optional
validation:boolean
|ValidationResult
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:92
Validation result of the parent rule/group.
Inherited from
BaseSelectorProps.validation
value?
optional
value:string
Defined in: packages/react-querybuilder/src/types/propsUsingReact.ts:110
Inherited from
BaseSelectorProps.value
API documentation is generated from the latest commit on the main
branch. It may be somewhat inconsistent with official releases of React Query Builder.