Compare commits
No commits in common. "f1ac74dcbc36d81c37cc216f751cc423ad788dda" and "eb0bf589615fc1948914ac0ec69440f238104495" have entirely different histories.
f1ac74dcbc
...
eb0bf58961
@ -23,9 +23,3 @@ func NewHeading (level int, text string) *Heading {
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMenuHeading creatss a new heading for use in menus.
|
|
||||||
func NewMenuHeading (text string) *Heading {
|
|
||||||
heading := NewHeading(0, text)
|
|
||||||
heading.SetTag("menu", true)
|
|
||||||
return heading
|
|
||||||
}
|
|
||||||
|
@ -126,10 +126,10 @@ type tab struct {
|
|||||||
func (this *tab) setActive (active bool) {
|
func (this *tab) setActive (active bool) {
|
||||||
if active {
|
if active {
|
||||||
this.SetRole(tomo.R("objects", "Tab"))
|
this.SetRole(tomo.R("objects", "Tab"))
|
||||||
this.SetTag("active", true)
|
this.SetTag("active", false)
|
||||||
} else {
|
} else {
|
||||||
this.SetRole(tomo.R("objects", "Tab"))
|
this.SetRole(tomo.R("objects", "Tab"))
|
||||||
this.SetTag("active", false)
|
this.SetTag("active", true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user