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
- The default styles hide this element if
enableDragAndDropisfalse, but it is always rendered.↩ - Only rendered if
autoSelectFieldistrueor the rule'sfielddoesn't matchtranslations.fields.placeholderName.↩ - Only rendered if the rule's
operatoris neither"null"nor"notNull"and the derivedvalueSourcesarray has more than one element.↩ - Only rendered when (1) the
arityproperty of the rule'soperatoris not"unary"or< 2, and (2)autoSelectOperatoristrueor the rule'soperatordoesn't matchtranslations.operators.placeholderName.↩ - Only rendered if
showCloneButtonsistrue.↩ - Only rendered if
showLockButtonsistrue.↩