Store role in Boxes
This commit is contained in:
@@ -28,7 +28,8 @@ func NewButton (text string) *Button {
|
||||
ContainerBox: tomo.NewContainerBox(),
|
||||
label: NewLabel(text),
|
||||
}
|
||||
tomo.Apply(box, tomo.R("objects", "Button", ""))
|
||||
box.SetRole(tomo.R("objects", "Button", ""))
|
||||
tomo.Apply(box)
|
||||
box.label.SetAlign(tomo.AlignMiddle, tomo.AlignMiddle)
|
||||
box.SetLayout(buttonLayout)
|
||||
box.SetText(text)
|
||||
|
||||
Reference in New Issue
Block a user