Table of Contents Previous Section

WOSwitchComponent

Synopsis

WOSwitchComponent { WOComponentName=aComponentName; ... };

Description

WOSwitchComponent provides a way to determine at runtime which nested component should be displayed. This component is useful when you want to decide how to display information based on the state of the application.

WOComponentName
Name of the component to display. This attribute can be a string or a method that returns the name of a component.
If the component specified in WOComponentName takes attributes, pass these attributes along to WOSwitchComponent following the WOComponentName attribute. Note that this means that all components that can be displayed by this WOSwitchComponent must use the same API.

Examples

Dynamically deciding which component to use

Table of Contents Next Section