Switch
Description:
Switch
The switch expression is evaluated once. The value of the expression is compared with the values of each case. If there is a match, the associated block of code is executed.
Allowed Parent Components:
Aggregate Card
Card Body
Card Table Column
Col
DataList
Form
Horizontal Section
Popup
Scroll Layout
Side Tab Item
Tab Item
Vertical Section
Allowed Child Components:
Case
Trigger Before Render
Properties
➤ View Attribute
Choose an attribute for the switch condition. Leave this blank to specify an expression instead. This value will be matched with each of the case and the first matching case's children will be chosen to render.
Allowed Values: Choose an attribute for the switch condition. Leave this blank to specify an expression instead. This value will be matched with each of the case and the first matching case's children will be chosen to render.
➤ Expression
Provide an expression that must return a string value to be used for the switch condition. This expression's outcome will be matched with each of the case and the first matching case's children will be chosen to render.
Allowed Values: An expression which should return string after evaluation
Last updated