Skip to main content

QueryActions

Functions included in the actions prop passed to every subcomponent.

Methods

moveRule()

moveRule(oldPath, newPath, clone?, context?): void

Parameters

ParameterType
oldPathPath
newPathPath | "up" | "down"
clone?boolean
context?any

Returns

void

Defined in

packages/react-querybuilder/src/types/props.ts:297


onGroupAdd()

onGroupAdd(group, parentPath, context?): void

Parameters

ParameterType
groupRuleGroupTypeAny
parentPathPath
context?any

Returns

void

Defined in

packages/react-querybuilder/src/types/props.ts:287


onGroupRemove()

onGroupRemove(path): void

Parameters

ParameterType
pathPath

Returns

void

Defined in

packages/react-querybuilder/src/types/props.ts:288


onPropChange()

onPropChange(prop, value, path, context?): void

Parameters

ParameterType
prop"value" | "disabled" | "field" | "operator" | "valueSource" | "combinatorPreceding" | "combinator" | "rules" | "not"
valueany
pathPath
context?any

Returns

void

Defined in

packages/react-querybuilder/src/types/props.ts:289


onRuleAdd()

onRuleAdd(rule, parentPath, context?): void

Parameters

ParameterType
ruleRuleType<string, string, any, string>
parentPathPath
context?any

Returns

void

Defined in

packages/react-querybuilder/src/types/props.ts:295


onRuleRemove()

onRuleRemove(path): void

Parameters

ParameterType
pathPath

Returns

void

Defined in

packages/react-querybuilder/src/types/props.ts:296


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.