Changes for page WOSwitchComponent
Last modified by Pascal Robert on 2012/01/30 22:37
From version 11.1
edited by Pascal Robert
on 2011/04/26 23:03
on 2011/04/26 23:03
Change comment:
There is no comment for this version
To version 12.1
edited by Pascal Robert
on 2012/01/30 22:37
on 2012/01/30 22:37
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -2,15 +2,24 @@ 2 2 3 3 = Introduction = 4 4 5 +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. 6 + 5 5 = Usage = 6 6 7 7 {{code}} 8 8 11 +WOSwitchComponent { 12 + WOComponentName=aComponentName; 13 + ... 14 +} 9 9 10 10 {{/code}} 11 11 12 12 = Bindings = 13 13 20 +| WOComponentName | Name of the component to display. This attribute can be a string or a method that returns the name. 21 +\\\\\\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. 22 + 14 14 = Examples = 15 15 16 16 == Java methods == ... ... @@ -30,3 +30,5 @@ 30 30 {{/code}} 31 31 32 32 = Related documents = 42 + 43 +[[ERXSwitchComponent>>http://wocommunity.org/documents/javadoc/wonder/latest/er/extensions/components/_private/ERXSwitchComponent.html]]