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
| Parameter | Type | Description |
|---|---|---|
query | RG | The query to update. |
oldPathOrID | string | Path | ID or original path of the rule or group to move. |
newPath | Path | "up" | "down" | Path to move the rule or group to, or a shift direction. |
options? | MoveOptions | Options. |
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.