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.
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
Other supported properties and functions are described in “Widget properties and functions.”
import com.ibm.egl.rui.widgets.TextLabel;