Add MenuHeading

This commit is contained in:
Sasha Koshka 2024-08-14 11:45:10 -04:00
parent eb0bf58961
commit ce0bc5be3b

View File

@ -23,3 +23,9 @@ 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
}