Add support for tabs

This commit is contained in:
Tom Wiesing 2023-11-10 14:59:04 +01:00
parent 7b5f8a9882
commit 207e23778b
No known key found for this signature in database
6 changed files with 50 additions and 12 deletions

View file

@ -12,10 +12,12 @@ type Menuable interface {
Menu(r *http.Request) []MenuItem
}
// MenuItem represents an item inside the menu
type MenuItem struct {
Title string
Path template.URL
Active bool
Active bool // Active, only used for tabs and crumbs
Priority MenuPriority