Skip to content

rad condition

Steve Hannah edited this page Jul 9, 2021 · 1 revision

rad-condition attribute

Synopsis

An attribute that can be added to any XML tag of a RAD view, whose value contains a java expression resolving to a boolean that will be run at the time that the component is created (at runtime), and dictates whether the component should be added to the UI or not.

Usage

<someComponent rad-condition="expression" .../>

Where the expression is a Java expression that resolves to a boolean.

Examples

The following label will only be created/added to the UI in portrait mode:

<label rad-condition="CN.isPortrait()">In Portrait Mode</label>
Clone this wiki locally