Skip to main content

getRuleExpressions()

getRuleExpressions(rule: RuleType): ResolvedExpressions | undefined

Defined in: expr/src/registry.ts:21

Resolves a rule's expression operands: lhs from rule.lhs, and the right-hand side from rule.value when valueSource is "expression". For between/notBetween operators the value is a 2-tuple [lower, upper] split into rhs/rhs2; all other operators carry a single rhs. Returns undefined when the rule carries no expression on either side.

Parameters

ParameterType
ruleRuleType

Returns

ResolvedExpressions | undefined


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.