Rule
The Rule
component represents query conditions. Rule
calls the useRule
hook to prepare the subcomponent props.
Subcomponents
Rule
renders elements in this order:
- Drag handle1
- Field selector
- Operator selector2
- Value source selector3 4
- Value editor4
- Clone rule button5
- Lock rule button6
- Remove rule button
Footnotes
-
Only rendered if
enableDragAndDrop
istrue
. ↩ -
Only rendered if
autoSelectField
istrue
or the rule'sfield
doesn't matchtranslations.fields.placeholderName
. ↩ -
Only rendered if the rule's
operator
is neither"null"
nor"notNull"
and the derivedvalueSources
array has more than one element. ↩ -
Only rendered when (1) the
arity
property of the rule'soperator
is not"unary"
or< 2
, and (2)autoSelectOperator
istrue
or the rule'soperator
doesn't matchtranslations.operators.placeholderName
. ↩ ↩2 -
Only rendered if
showCloneButtons
istrue
. ↩ -
Only rendered if
showLockButtons
istrue
. ↩