adminlte

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ThemeDefault is the default theme
	ThemeDefault = "default"
	// ThemeDark is the dark theme
	ThemeDark = "dark"
	// ThemeLight is the light theme
	ThemeLight = "light"
)

Theme constants

Variables

This section is empty.

Functions

func BuildSidebarMenu

func BuildSidebarMenu(dashboard types.DashboardInterface) *hb.Tag

BuildSidebarMenu builds the sidebar menu structure

func ThemeColors

func ThemeColors() map[string]string

ThemeColors returns a map of theme names to their color codes

func ThemeHandler

func ThemeHandler(theme string) string

ThemeHandler handles theme switching

func ThemeIcons

func ThemeIcons() map[string]string

ThemeIcons returns a map of theme names to their icon classes

func ThemeNames

func ThemeNames() map[string]string

ThemeNames returns a map of theme names to their display names

Types

type Template

type Template struct{}

Template implements the types.TemplateInterface for AdminLTE-based templates

func (*Template) ToHTML

func (t *Template) ToHTML(dashboard types.DashboardInterface) string

ToHTML generates the complete HTML for the dashboard page

Jump to

Keyboard shortcuts

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