Rich UI span

You can use a Rich UI span to display a string that the user cannot change. The widget is different from a text label because when you include an HTML segment, such as <b>this boldfaced code</b>, HTML-coded content, such as this boldfaced code, is displayed.
Here is an example:
import com.ibm.egl.rui.widgets.Div;
import com.ibm.egl.rui.widgets.Span;
import egl.ui.color;

handler myOne type RUIHandler{initialUI =[myDiv]}
   myDiv Div{children = [mySpan01, mySpan02, mySpan03]};
   mySpan01 Span{text = "mix blue ", color = "blue"};
   mySpan02 Span{text = " and yellow ", backgroundColor = "black", color = "yellow"};
   mySpan03 Span{text = " to see green", color = "green"};
end

The main supported property is text, which takes the string to display. Other supported properties and functions are described in "Widget properties and functions."

If you use this widget, you must use the following statement:
import com.ibm.egl.rui.widgets.Span;

Feedback