Skip to main content

MoveMethod()

Defined in: packages/core/src/utils/queryTools.ts:436

MoveMethod<RG>(query: RG, oldPathOrID: string | Path, newPath: Path | "up" | "down", options?: MoveOptions): RG

Defined in: packages/core/src/utils/queryTools.ts:437

Type Parameters

Type Parameter
RG extends RuleGroupTypeAny

Parameters

ParameterTypeDescription
queryRGThe query to update.
oldPathOrIDstring | PathID or original path of the rule or group to move.
newPathPath | "up" | "down"Path to move the rule or group to, or a shift direction.
options?MoveOptionsOptions.

Returns

RG


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.