Skip to main content

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

ParameterTypeDescription
rulesEngineREThe query to update.
propertystringThe name of the property to update.
valueanyThe new value of the property.
conditionPathOrIDstring | PathPath or ID of the rules engine condition to update.
_updateOptionsUpdateOptionsREOptions.

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.