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."
import com.ibm.egl.rui.widgets.Span;