Skip to main content

addRE()

addRE<RE>(rulesEngine: RE, subject: REConditionAny, parentConditionPathOrID: string | Path, __namedParameters: AddOptionsRE): RE

Defined in: packages/rules-engine/src/utils/rulesEngineTools.ts:38

Adds a rule or group to a query.

Type Parameters

Type Parameter
RE extends RulesEngineAny

Parameters

ParameterTypeDescription
rulesEngineREThe rules engine to update.
subjectREConditionAnyThe rules engine condition to add.
parentConditionPathOrIDstring | PathPath or ID of the rules engine condition to add to.
__namedParametersAddOptionsREOptions.

Returns

RE

The new query with the rule or group added.


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.