Skip to main content

MoveMethodRE()

Defined in: rules-engine/src/utils/rulesEngineTools.ts:264

MoveMethodRE<RE>(rulesEngine: RE, oldConditionPathOrID: string | Path, newConditionPathOrIdOrShiftDir: Path | string & { } | "up" | "down", options?: MoveOptionsRE): RE

Defined in: rules-engine/src/utils/rulesEngineTools.ts:265

Type Parameters

Type Parameter
RE extends RulesEngineAny

Parameters

ParameterTypeDescription
rulesEngineREThe rules engine to update.
oldConditionPathOrIDstring | PathPath or ID of the condition to move, or the condition itself if moving within a nested group.
newConditionPathOrIdOrShiftDirPath | string & { } | "up" | "down"Path to move the condition to, ID of the condition to replace/insert before, or shift direction.
options?MoveOptionsREOptions.

Returns

RE


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.