Conditional Builder
The Conditional Builder widget is a powerful tool for displaying different widgets based on a set of conditions. It evaluates a series of ConditionalItem
children and displays the first one whose condition evaluates to true
. This is useful for creating dynamic UIs that change based on application state, user input, or other factors.
Data Source
The Conditional Builder widget has a Data Ref
property that can be used by the ConditionalItem
children. You can input either static data or dynamic data using expressions.
Properties
Data Ref
A list of data that can be used by the ConditionalItem
children.
Active View
The index of the ConditionalItem
to display. This is useful for debugging or forcing a specific view.
Default Properties
The Conditional Builder widget supports all Default Properties.
Children of Conditional Builder
children
A list of ConditionalItem
widgets. The first ConditionalItem
whose condition
evaluates to true
will be displayed.
Best Practices
Always provide a default
ConditionalItem
with acondition
that is alwaystrue
to avoid errors when no other conditions are met.Keep the conditions simple and easy to understand.
Last updated