Add MenuHeading
This commit is contained in:
		
							parent
							
								
									eb0bf58961
								
							
						
					
					
						commit
						ce0bc5be3b
					
				@ -23,3 +23,9 @@ func NewHeading (level int, text string) *Heading {
 | 
			
		||||
	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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user