updateRE()
updateRE<
RE>(rulesEngine:RE,property:string,value:any,conditionPathOrID:string|Path,_updateOptions:UpdateOptionsRE):RE
Defined in: packages/rules-engine/src/utils/rulesEngineTools.ts:82
Updates a property of a rule or group within a query.
Type Parameters
| Type Parameter |
|---|
RE extends RulesEngineAny |
Parameters
| Parameter | Type | Description |
|---|---|---|
rulesEngine | RE | The query to update. |
property | string | The name of the property to update. |
value | any | The new value of the property. |
conditionPathOrID | string | Path | Path or ID of the rules engine condition to update. |
_updateOptions | UpdateOptionsRE | Options. |
Returns
RE
The new query with the rule or group property updated.
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.