QueryActionHandlers
Defined in: packages/core/src/utils/queryActions.ts:98
The six mutations a query builder performs. Each takes the current query and returns the next
one, or undefined when the mutation was aborted—because the target is disabled, a
confirmation callback declined, or a depth limit was reached.
Properties
addGroup
addGroup: (
query:any,ruleGroup:any,parentPath:Path,context?:any) =>any
Defined in: packages/core/src/utils/queryActions.ts:100
Parameters
| Parameter | Type |
|---|---|
query | any |
ruleGroup | any |
parentPath | Path |
context? | any |
Returns
any
addRule
addRule: (
query:any,rule:RuleType,parentPath:Path,context?:any) =>any
Defined in: packages/core/src/utils/queryActions.ts:99
Parameters
| Parameter | Type |
|---|---|
query | any |
rule | RuleType |
parentPath | Path |
context? | any |
Returns
any
groupRule
groupRule: (
query:any,sourcePath:Path,targetPath:Path,clone?:boolean,context?:any) =>any
Defined in: packages/core/src/utils/queryActions.ts:110
Parameters
| Parameter | Type |
|---|---|
query | any |
sourcePath | Path |
targetPath | Path |
clone? | boolean |
context? | any |
Returns
any
moveRule
moveRule: (
query:any,oldPath:Path,newPath:Path|"up"|"down",clone?:boolean,context?:any) =>any
Defined in: packages/core/src/utils/queryActions.ts:103
Parameters
| Parameter | Type |
|---|---|
query | any |
oldPath | Path |
newPath | Path | "up" | "down" |
clone? | boolean |
context? | any |
Returns
any
propChange
propChange: (
query:any,prop:UpdateableProperties,value:any,path:Path) =>any
Defined in: packages/core/src/utils/queryActions.ts:101
Parameters
| Parameter | Type |
|---|---|
query | any |
prop | UpdateableProperties |
value | any |
path | Path |
Returns
any
removeRuleOrGroup
removeRuleOrGroup: (
query:any,path:Path,context?:any) =>any
Defined in: packages/core/src/utils/queryActions.ts:102
Parameters
| Parameter | Type |
|---|---|
query | any |
path | Path |
context? | any |
Returns
any
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.