Store role in Boxes
This commit is contained in:
@@ -11,7 +11,8 @@ type TextView struct {
|
||||
// NewTextView creates a new text view.
|
||||
func NewTextView (text string) *TextView {
|
||||
this := &TextView { TextBox: tomo.NewTextBox() }
|
||||
tomo.Apply(this, tomo.R("objects", "TextView", ""))
|
||||
this.SetRole(tomo.R("objects", "TextView", ""))
|
||||
tomo.Apply(this)
|
||||
this.SetFocusable(true)
|
||||
this.SetSelectable(true)
|
||||
this.SetText(text)
|
||||
|
||||
Reference in New Issue
Block a user