Skip to main content

ExpressionEditor()

ExpressionEditor(__namedParameters: ExpressionEditorProps): Element

Defined in: expr/src/ui/ExpressionEditor.tsx:76

Recursive editor for a single ExpressionNode. A kind selector switches between a field reference, a literal value (parsed as a number when the host's parseNumbers is enabled), a named parameter reference (a selector over schema.getParameters(), or a free-text input when none are configured), and a function call whose arguments are themselves ExpressionEditors — enabling arbitrary nesting.

Selectors render via schema.controls.valueSelector and the literal editor via the inherited value editor (the compat editor captured before QueryBuilderExpressions overrides it), so nested controls match the host theme without re-entering the expression wrapper.

Parameters

ParameterType
__namedParametersExpressionEditorProps

Returns

Element


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.