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:

  1. Switch

Allowed Child Components:

  1. Button

  2. Card Wrapper

  3. Col

  4. Form

  5. Icon

  6. Row

  7. Trigger Before Render

  8. 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