Interface: UpdateOptions
react-querybuilder.UpdateOptions
Options object for update.
Properties
getRuleDefaultOperator
Optional
getRuleDefaultOperator: (field
: string
) => string
Determines the default operator name for a given field.
Type declaration
(field
): string
Parameters
Name | Type |
---|---|
field | string |
Returns
string
Defined in
packages/react-querybuilder/src/utils/queryTools.ts:94
getRuleDefaultValue
Optional
getRuleDefaultValue: (rule
: RuleType
<string
, string
, any
, string
>) => any
Gets the default value for a given rule, in case the value needs to be reset.
Type declaration
(rule
): any
Parameters
Name | Type |
---|---|
rule | RuleType <string , string , any , string > |
Returns
any
Defined in
packages/react-querybuilder/src/utils/queryTools.ts:103
getValueSources
Optional
getValueSources: (field
: string
, operator
: string
) => ValueSources
Determines the valid value sources for a given field and operator.
Type declaration
(field
, operator
): ValueSources
Parameters
Name | Type |
---|---|
field | string |
operator | string |
Returns
Defined in
packages/react-querybuilder/src/utils/queryTools.ts:98
resetOnFieldChange
Optional
resetOnFieldChange: boolean
When updating the field
of a rule, the rule's operator
, value
, and valueSource
will be reset to their respective defaults. Defaults to true
.
Defined in
packages/react-querybuilder/src/utils/queryTools.ts:85
resetOnOperatorChange
Optional
resetOnOperatorChange: boolean
When updating the operator
of a rule, the rule's value
and valueSource
will be reset to their respective defaults. Defaults to false
.