Update code for layouts, objects
This commit is contained in:
@@ -15,7 +15,8 @@ func NewHeading (level int, text string) *Heading {
|
||||
if level < 0 { level = 0 }
|
||||
if level > 2 { level = 2 }
|
||||
this := &Heading { TextBox: tomo.NewTextBox() }
|
||||
this.SetRole(tomo.R("objects", "Heading", fmt.Sprint(level)))
|
||||
this.SetRole(tomo.R("objects", "Heading"))
|
||||
this.SetTag(fmt.Sprint(level), true)
|
||||
this.SetText(text)
|
||||
return this
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user