menu

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalMenu = &Menu{
	[]MenuItem{},
	[]map[string]string{},
	0,
}

Functions

func InitMenu

func InitMenu()

func SetGlobalMenu

func SetGlobalMenu()

Types

type Menu struct {
	GlobalMenuList   []MenuItem
	GlobalMenuOption []map[string]string
	MaxOrder         int64
}
func (menu *Menu) GetEditMenuList() []MenuItem
func (menu *Menu) SetActiveClass(path string)
func (menu *Menu) SexMaxOrder(order int64)
type MenuItem struct {
	Name         string
	ID           string
	Url          string
	Icon         string
	Active       string
	ChildrenList []MenuItem
}

func ConstructMenuTree

func ConstructMenuTree(menus []map[string]interface{}, parentId int64) []MenuItem

func GetMenuItemById

func GetMenuItemById(id string) MenuItem

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL