Case
Description:
Case
Cases are the possible outputs of the evaluated switch expression. Only the children of the case which is equal to the evaluated expression from the switch, will be rendered.
For example, suppose the switch expression is #{attr} == 'success' ? 'A' : 'B'
Here we can have two cases
Case 1:
A
Case 2:
B
If the outcome of expression is A, then the children of case A will be rendered or if the outcome is B then children of case B will be rendered. If the outcome does not match any of the cases, then nothing will render.
Allowed Parent Components:
Switch
Allowed Child Components:
Button
Card Wrapper
Col
Form
Icon
Row
Trigger Before Render
Wave
Properties
➤ Case
Provide a constant string value (without quotes) for this case to match the above switch condition
Allowed Values: Free text field
Last updated