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
| Parameter | Type | Description |
|---|---|---|
rulesEngine | RE | The rules engine to update. |
subject | REConditionAny | The rules engine condition to add. |
parentConditionPathOrID | string | Path | Path or ID of the rules engine condition to add to. |
__namedParameters | AddOptionsRE | Options. |
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.