Skip to main content

MoveMethodRE()

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

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

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

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.
newConditionPathOrIdOrShiftDirstring & { } | Path | "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.