Store role in Boxes
This commit is contained in:
3
label.go
3
label.go
@@ -10,7 +10,8 @@ type Label struct {
|
||||
// NewLabel creates a new text label.
|
||||
func NewLabel (text string) *Label {
|
||||
this := &Label { TextBox: tomo.NewTextBox() }
|
||||
tomo.Apply(this, tomo.R("objects", "Label", ""))
|
||||
this.SetRole(tomo.R("objects", "Label", ""))
|
||||
tomo.Apply(this)
|
||||
this.SetText(text)
|
||||
return this
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user