Skip to main content

prepareRuleGroup()

prepareRuleGroup<RG>(queryObject: RG, __namedParameters: PreparerOptions): RG

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

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


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.