import com.ibm.egl.rui.widgets.Div; import com.ibm.egl.rui.widgets.TextLabel; import egl.ui.color; handler myOne 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 textLabel widget supports the text property, which takes the string to display
For information about other supported properties and functions, see "Widget properties and functions."
import com.ibm.egl.rui.widgets.TextLabel;