layouts

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LayoutRoot      = "root"
	LayoutDashboard = "dashboard"
	LayoutSettings  = "settings"
	LayoutApp       = "app"
	LayoutAuthless  = "authless"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionRegistryInterface

type ExtensionRegistryInterface interface {
	GetNavigationItems(position ui.NavigationPosition, enabledPlugins map[string]bool) []ui.NavigationItem
	List() []ui.DashboardExtension
}

ExtensionRegistryInterface defines the minimal interface needed from the extension registry.

type LayoutManager

type LayoutManager struct {
	Title       string
	Description string
	Keywords    []string
	Author      string
	Copyright   string
	Robots      string
	Canonical   string
	// contains filtered or unexported fields
}

func NewLayoutManager

func NewLayoutManager(fuiApp *forgeui.App, baseUIPath string, isMultiAppMode bool, enabledPlugins map[string]bool) *LayoutManager

func (*LayoutManager) AppLayout

func (l *LayoutManager) AppLayout(ctx *router.PageContext, content g.Node) g.Node

func (*LayoutManager) AuthlessLayout

func (l *LayoutManager) AuthlessLayout(ctx *router.PageContext, content g.Node) g.Node

func (*LayoutManager) DashboardLayout

func (l *LayoutManager) DashboardLayout(ctx *router.PageContext, content g.Node) g.Node

func (*LayoutManager) RegisterLayouts

func (l *LayoutManager) RegisterLayouts() error

func (*LayoutManager) RootLayout

func (l *LayoutManager) RootLayout(ctx *router.PageContext, content g.Node) g.Node

RootLayout - THE ONLY layout with full HTML structure This is the single source of truth for head/body configuration.

func (*LayoutManager) SetBaseUIPath

func (l *LayoutManager) SetBaseUIPath(baseUIPath string)

func (*LayoutManager) SetExtensionRegistry

func (l *LayoutManager) SetExtensionRegistry(registry ExtensionRegistryInterface)

SetExtensionRegistry sets the extension registry for dynamic plugin navigation.

func (*LayoutManager) SettingsLayout

func (l *LayoutManager) SettingsLayout(ctx *router.PageContext, content g.Node) g.Node

Jump to

Keyboard shortcuts

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