Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseMenu ¶
type BaseMenu struct {
MenuID string // ID of the menu
HasChildren bool // Shortcut to find out if the menu has children
Text string // Text of the menu
TextClass string // Text style of the menu via CSS class
Icon string // Icon of the menu
Link string // Link of the menu
LinkClass string // Style of the link via CSS class
OnClick string // Onclick event
Visible bool // Indicates if the menu is visible or not
Visibility VisibilityType // Visibility of the menu when logged in, logged out or both
Ordinal int // Order of the menu
Children []Menu // Children of the current menu
Headers []Header // Header of the current menu
}
BaseMenu - base menu struct (Not rendered)
type Header ¶
type Header struct {
Text string // Header text
Subscripts []Menu // Lists the menus that are under this header
}
Header is a header for the menu
type MainMenu ¶
type MainMenu struct {
BaseMenu
}
MainMenu is a menu that cannot have links This is often used as the header menus
type RootMenu ¶
RootMenu is the root of the menus (not rendered)
type VisibilityType ¶
type VisibilityType int
VisibilityType - the type of visibility
const ( // BOTH - visible on both logged or logged status BOTH VisibilityType = 0 // NOTLOGGED - visible when the status is not logged NOTLOGGED VisibilityType = 1 // LOGGED - visible when the status is logged LOGGED VisibilityType = 2 )
Click to show internal directories.
Click to hide internal directories.