You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-renderer-demo/src/app/pages/renderer/condition.md
+61-2Lines changed: 61 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ You can show a field only if it meets a condition:
34
34
35
35
`when` - is name of field where the value is stored, **always required!**. It can be either string `'field-name'` or array of strings `['field-1', 'field-2']`.
36
36
37
-
### OR
37
+
### Or
38
38
39
39
At least one condition must be met.
40
40
@@ -85,7 +85,7 @@ Also, you can use a shorthand:
85
85
86
86
<RawComponentsource="conditions/or" />
87
87
88
-
### AND
88
+
### And
89
89
90
90
All conditions must be met.
91
91
@@ -199,6 +199,27 @@ As the value you can use an array (AND) or another condition.
199
199
200
200
<RawComponentsource="conditions/not" />
201
201
202
+
### Sequence
203
+
204
+
This special type of condition allows to trigger a sequence of multiple independent conditions. This is useful in combination with [conditional actions](/renderer/condition#conditionalactions). Setters are executed independently. Visibility is set to true, if any of the conditions sets it to true. Sequence has to be currently the root condition, that means the sequence cannot be nested within other types of conditions such as `and`, `or` and `not`.
There are currently two types of conditionals actions: `visible` and `set`. These actions can be called from `then` or `else` statements in root conditions. (Conditions has to be the root of the condition tree, or they have to be included in a [sequence](/renderer/condition#sequence) array.)
0 commit comments