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
| Parameter | Type | Description |
|---|---|---|
rulesEngine | RE | The rules engine to update. |
oldConditionPathOrID | string | Path | Path or ID of the condition to move, or the condition itself if moving within a nested group. |
newConditionPathOrIdOrShiftDir | Path | string & { } | "up" | "down" | Path to move the condition to, ID of the condition to replace/insert before, or shift direction. |
options? | MoveOptionsRE | Options. |
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.