insertRE()
insertRE<
RE>(rulesEngine:RE,subject:REConditionAny,conditionPath:Path,__namedParameters:InsertOptionsRE):RE
Defined in: packages/rules-engine/src/utils/rulesEngineTools.ts:295
Inserts a rule engine condition into a rules engine.
Type Parameters
| Type Parameter |
|---|
RE extends RulesEngineAny |
Parameters
| Parameter | Type | Description |
|---|---|---|
rulesEngine | RE | The rules engine to update. |
subject | REConditionAny | The rules engine, consequent, rule, or rule group to insert. |
conditionPath | Path | Path at which to insert the condition. |
__namedParameters | InsertOptionsRE | Options. |
Returns
RE
The new rules engine with the condition inserted.
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.