Skip to main content

QueryActions

Functions included in the actions prop passed to every subcomponent.

Methods

moveRule()

moveRule(oldPath, newPath, clone?): void

Parameters

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

Returns

void

Defined in

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


onGroupAdd()

onGroupAdd(group, parentPath, context?): void

Parameters

ParameterType
groupRuleGroupTypeAny
parentPathPath
context?any

Returns

void

Defined in

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


onGroupRemove()

onGroupRemove(path): void

Parameters

ParameterType
pathPath

Returns

void

Defined in

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


onPropChange()

onPropChange(prop, value, path): void

Parameters

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

Returns

void

Defined in

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


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:259


onRuleRemove()

onRuleRemove(path): void

Parameters

ParameterType
pathPath

Returns

void

Defined in

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


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.