Rich UI TextLabel

A Rich UI textLabel widget displays a string that the user cannot change. The widget is different from a span because inclusion of an HTML segment (such as <b>this code</b>) is displayed as is, including the angle brackets.

Here is an example:
import com.ibm.egl.rui.widgets.Div;
import com.ibm.egl.rui.widgets.TextLabel;
import egl.ui.color;

handler MyHandler type RUIHandler{initialUI =[myDiv]}
   myDiv Div{children = [myLabel01, myLabel02, myLabel03]};
   myLabel01 TextLabel{text = "mix blue ", color = "blue"};
   myLabel02 TextLabel{text = " and yellow ", 
                       backgroundColor = "black", 
                       color = "yellow"};
   myLabel03 TextLabel{text = " to see green", color = "green"};
end
The following property is supported:

Other supported properties and functions are described in “Widget properties and functions.”

Use of this widget requires the following statement:
import com.ibm.egl.rui.widgets.TextLabel;

Feedback