Skip to main content

regenerateIDs()

regenerateIDs(ruleOrGroup: RuleGroupType<RuleType<string, string, any, string>, string> | RuleGroupTypeIC<RuleType<string, string, any, string>, string>, __namedParameters: RegenerateIdOptions): RuleGroupType<RuleType<string, string, any, string>, string> | RuleGroupTypeIC<RuleType<string, string, any, string>, string>

Recursively generates new id properties for a group and all its rules and subgroups.

Parameters

ParameterType
ruleOrGroupRuleGroupType<RuleType<string, string, any, string>, string> | RuleGroupTypeIC<RuleType<string, string, any, string>, string>
__namedParametersRegenerateIdOptions

Returns

RuleGroupType<RuleType<string, string, any, string>, string> | RuleGroupTypeIC<RuleType<string, string, any, string>, string>

Defined in

packages/react-querybuilder/src/utils/regenerateIDs.ts:30


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.