Skip to main content

prepareRuleGroup()

prepareRuleGroup<RG>(queryObject, __namedParameters): RG

Ensures that a rule group is valid by recursively adding an id property to the group itself and all its rules and subgroups where one does not already exist.

Type Parameters

Type Parameter
RG extends RuleGroupTypeAny

Parameters

ParameterType
queryObjectRG
__namedParametersPreparerOptions

Returns

RG

Defined in

packages/react-querybuilder/src/utils/prepareQueryObjects.ts:38


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.