Documentation
¶
Index ¶
Constants ¶
View Source
const ( PartBrand = widget.Part("brand") PartLogo = widget.Part("logo") PartToggle = widget.Part("toggle") PartMenu = widget.Part("menu") PartLink = widget.Part("link") PartActions = widget.Part("actions") )
NameSiteNav is the widget name for sitenav.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NavItem ¶
type NavItem struct {
}
NavItem represents a single link item in the site navigation bar.
type SiteNav ¶
type SiteNav struct {
}
SiteNav provides the main site header with brand logo, navigation links, actions, and a responsive mobile toggle menu.
func (*SiteNav) IconSvg ¶
IconSvg registers the hamburger menu and close icon glyphs for mobile navigation.
func (*SiteNav) RenderCSS ¶
func (sn *SiteNav) RenderCSS() *css.Stylesheet
RenderCSS defines the visual stylesheet for sitenav.
func (*SiteNav) RenderJS ¶
RenderJS returns the vanilla JavaScript snippet responsible for the mobile menu toggle behavior and link click auto-close.
func (*SiteNav) WidgetKind ¶
func (*SiteNav) WidgetName ¶
Click to show internal directories.
Click to hide internal directories.