Documentation
¶
Index ¶
- func Breadcrumbs(crumbs []Breadcrumb, basePath string) g.Node
- func BuildForgeUISidebar(groups []contributor.NavGroup, activePath, basePath string) g.Node
- func BuildSidebarMenuItem(item contributor.ResolvedNav, activePath, basePath string) g.Node
- func BuildSidebarNavGroups(groups []contributor.NavGroup, activePath, basePath string) []g.Node
- func DashboardStoreScript(basePath, nonce string) g.Node
- func HTMXConfigScript(nonce string) g.Node
- func HTMXScript() g.Node
- func HelperScripts(nonce string) g.Node
- func SanitizeAlpineKey(name string) string
- func TopBar(title string, breadcrumbs []Breadcrumb, basePath string) g.Node
- type Breadcrumb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Breadcrumbs ¶
func Breadcrumbs(crumbs []Breadcrumb, basePath string) g.Node
Breadcrumbs renders a breadcrumb navigation trail.
func BuildForgeUISidebar ¶
func BuildForgeUISidebar(groups []contributor.NavGroup, activePath, basePath string) g.Node
BuildForgeUISidebar builds a full forgeui sidebar component from nav groups.
func BuildSidebarMenuItem ¶
func BuildSidebarMenuItem(item contributor.ResolvedNav, activePath, basePath string) g.Node
BuildSidebarMenuItem creates a forgeui sidebar menu button with HTMX navigation.
func BuildSidebarNavGroups ¶
func BuildSidebarNavGroups(groups []contributor.NavGroup, activePath, basePath string) []g.Node
BuildSidebarNavGroups converts contributor NavGroups into forgeui sidebar groups.
func DashboardStoreScript ¶
DashboardStoreScript initializes the Alpine.js store for dashboard state management. It provides shared state for sidebar collapse, theme, notifications, and basePath.
func HTMXConfigScript ¶
HTMXConfigScript configures HTMX behavior for the dashboard.
func HelperScripts ¶
HelperScripts provides utility JavaScript functions used throughout the dashboard.
func SanitizeAlpineKey ¶
SanitizeAlpineKey converts a group name to a valid Alpine.js variable name.
Types ¶
type Breadcrumb ¶
Breadcrumb represents a single breadcrumb navigation item.