Rule
The Rule component represents query conditions. Rule calls the useRule hook to prepare the subcomponent props.
Subcomponents
Rule renders elements in this order:
- Shift actions1
- Drag handle2
- Field selector
- Operator selector3
- Value source selector4 5
- Value editor5
- Clone rule button6
- Lock rule button7
- Remove rule button
Footnotes
-
Only rendered if
showShiftActionsistrue. ↩ -
Only rendered if
enableDragAndDropistrue. ↩ -
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. ↩ ↩2 -
Only rendered if
showCloneButtonsistrue. ↩ -
Only rendered if
showLockButtonsistrue. ↩