Documentation ¶
Overview ¶
templ: version: v0.2.707
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseItem ¶
type MenuItem ¶
type MenuItem interface { // Order is used to sort the menu items // // The menu items are sorted in ascending order // // I.E. The menu item with the lowest order will be displayed first // // If two menu items have the same order, they will remain in the order they were added Order() int // IsShown is used to determine if the menu item should be displayed IsShown() bool // Implement a method for the templ.Component interface // // We explicitly only render the menu with the templ generated code. Component() templ.Component // Name is used to identify the menu item // // The name should be unique Name() string }
type SubmenuItem ¶
type SubmenuItem struct {}
func (*SubmenuItem) Component ¶
func (s *SubmenuItem) Component() templ.Component
func (*SubmenuItem) IsShown ¶
func (s *SubmenuItem) IsShown() bool
Click to show internal directories.
Click to hide internal directories.