QueryActionCallbacks
Defined in: packages/core/src/utils/queryActions.ts:30
Confirmation callbacks invoked before a mutation is applied. Their return values are interpreted differently depending on the operation:
onAddRule/onAddGroupmay returntrueto proceed, a falsy value to cancel, or a replacement rule/group to add instead of the one provided.onMoveRule/onMoveGroup/onGroupRule/onGroupGroupmay returntrueto proceed, a falsy value to cancel, or a replacement query to apply instead of the computed one.onRemoveis boolean only.
Extended by
Properties
onAddGroup?
optionalonAddGroup?: (ruleGroup:any,parentPath:Path,query:any,context?:any) =>boolean|RuleGroupTypeAny
Defined in: packages/core/src/utils/queryActions.ts:32
Parameters
| Parameter | Type |
|---|---|
ruleGroup | any |
parentPath | Path |
query | any |
context? | any |
Returns
boolean | RuleGroupTypeAny
onAddRule?
optionalonAddRule?: (rule:RuleType,parentPath:Path,query:any,context?:any) =>boolean|RuleType<string,string,any,string,Record<string,any>>
Defined in: packages/core/src/utils/queryActions.ts:31
Parameters
| Parameter | Type |
|---|---|
rule | RuleType |
parentPath | Path |
query | any |
context? | any |
Returns
boolean | RuleType<string, string, any, string, Record<string, any>>
onGroupGroup?
optionalonGroupGroup?: (...args:any[]) =>boolean|RuleGroupTypeAny
Defined in: packages/core/src/utils/queryActions.ts:42
Parameters
| Parameter | Type |
|---|---|
...args | any[] |
Returns
boolean | RuleGroupTypeAny
onGroupRule?
optionalonGroupRule?: (...args:any[]) =>boolean|RuleGroupTypeAny
Defined in: packages/core/src/utils/queryActions.ts:41
Parameters
| Parameter | Type |
|---|---|
...args | any[] |
Returns
boolean | RuleGroupTypeAny
onMoveGroup?
optionalonMoveGroup?: (...args:any[]) =>boolean|RuleGroupTypeAny
Defined in: packages/core/src/utils/queryActions.ts:40
Parameters
| Parameter | Type |
|---|---|
...args | any[] |
Returns
boolean | RuleGroupTypeAny
onMoveRule?
optionalonMoveRule?: (...args:any[]) =>boolean|RuleGroupTypeAny
Defined in: packages/core/src/utils/queryActions.ts:39
Parameters
| Parameter | Type |
|---|---|
...args | any[] |
Returns
boolean | RuleGroupTypeAny
onRemove?
optionalonRemove?: (ruleOrGroup:any,path:Path,query:any,context?:any) =>boolean
Defined in: packages/core/src/utils/queryActions.ts:38
Parameters
| Parameter | Type |
|---|---|
ruleOrGroup | any |
path | Path |
query | any |
context? | any |
Returns
boolean
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.