QueryActions
Defined in: packages/core/src/types/queryBuilder.ts:281
Functions included in the actions prop passed to every subcomponent.
Methods
groupRule()
groupRule(
sourcePath:Path,targetPath:Path,clone?:boolean,context?:any):void
Defined in: packages/core/src/types/queryBuilder.ts:293
Parameters
| Parameter | Type |
|---|---|
sourcePath | Path |
targetPath | Path |
clone? | boolean |
context? | any |
Returns
void
moveRule()
moveRule(
oldPath:Path,newPath:Path|"up"|"down",clone?:boolean,context?:any):void
Defined in: packages/core/src/types/queryBuilder.ts:292
Parameters
| Parameter | Type |
|---|---|
oldPath | Path |
newPath | Path | "up" | "down" |
clone? | boolean |
context? | any |
Returns
void
onGroupAdd()
onGroupAdd(
group:RuleGroupTypeAny,parentPath:Path,context?:any):void
Defined in: packages/core/src/types/queryBuilder.ts:282
Parameters
| Parameter | Type |
|---|---|
group | RuleGroupTypeAny |
parentPath | Path |
context? | any |
Returns
void
onGroupRemove()
onGroupRemove(
path:Path):void
Defined in: packages/core/src/types/queryBuilder.ts:283
Parameters
| Parameter | Type |
|---|---|
path | Path |
Returns
void
onPropChange()
onPropChange(
prop:"match"|"value"|"disabled"|"field"|"operator"|"valueSource"|"combinatorPreceding"|"combinator"|"rules"|"not"|"muted",value:any,path:Path,context?:any):void
Defined in: packages/core/src/types/queryBuilder.ts:284
Parameters
| Parameter | Type |
|---|---|
prop | "match" | "value" | "disabled" | "field" | "operator" | "valueSource" | "combinatorPreceding" | "combinator" | "rules" | "not" | "muted" |
value | any |
path | Path |
context? | any |
Returns
void
onRuleAdd()
onRuleAdd(
rule:RuleType,parentPath:Path,context?:any):void
Defined in: packages/core/src/types/queryBuilder.ts:290
Parameters
| Parameter | Type |
|---|---|
rule | RuleType |
parentPath | Path |
context? | any |
Returns
void
onRuleRemove()
onRuleRemove(
path:Path):void
Defined in: packages/core/src/types/queryBuilder.ts:291
Parameters
| Parameter | Type |
|---|---|
path | Path |
Returns
void
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.