prepareRuleGroup()
prepareRuleGroup<
RG>(queryObject:RG,__namedParameters:PreparerOptions):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
| Parameter | Type |
|---|---|
queryObject | RG |
__namedParameters | PreparerOptions |
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.