UpdateOptions
Defined in: packages/core/src/utils/queryTools.ts:98
Options for update.
Properties
getMatchModes()?
optionalgetMatchModes: (field:string) =>MatchModeOptions
Defined in: packages/core/src/utils/queryTools.ts:125
Determines the valid match modes for a given field.
Parameters
| Parameter | Type |
|---|---|
field | string |
Returns
getRuleDefaultOperator()?
optionalgetRuleDefaultOperator: (field:string) =>string
Defined in: packages/core/src/utils/queryTools.ts:112
Determines the default operator name for a given field.
Parameters
| Parameter | Type |
|---|---|
field | string |
Returns
string
getRuleDefaultValue()?
optionalgetRuleDefaultValue: (rule:RuleType) =>any
Defined in: packages/core/src/utils/queryTools.ts:121
Gets the default value for a given rule, in case the value needs to be reset.
Parameters
| Parameter | Type |
|---|---|
rule | RuleType |
Returns
any
getValueSources()?
optionalgetValueSources: (field:string,operator:string) =>ValueSources|ValueSourceFlexibleOptions
Defined in: packages/core/src/utils/queryTools.ts:116
Determines the valid value sources for a given field and operator.
Parameters
| Parameter | Type |
|---|---|
field | string |
operator | string |
Returns
ValueSources | ValueSourceFlexibleOptions
resetOnFieldChange?
optionalresetOnFieldChange:boolean
Defined in: packages/core/src/utils/queryTools.ts:103
When updating the field of a rule, the rule's operator, value, and valueSource
will be reset to their respective defaults. Defaults to true.
resetOnOperatorChange?
optionalresetOnOperatorChange:boolean
Defined in: packages/core/src/utils/queryTools.ts:108
When updating the operator of a rule, the rule's value and valueSource
will be reset to their respective defaults. Defaults to false.
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.