Skip to main content

GroupMethod()

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

GroupMethod<RG extends RuleGroupTypeAny>(query: RG, sourcePathOrID: string | Path, targetPathOrID: string | Path, options?: GroupOptions): RG

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

Type Parameters​

Type Parameter
RG extends RuleGroupTypeAny

Parameters​

ParameterTypeDescription
queryRGThe query to update.
sourcePathOrIDstring | PathPath of the rule/group to move or clone.
targetPathOrIDstring | PathPath of the target rule/group, which will become the path of the new group.
options?GroupOptionsOptions.

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.