Documentation
¶
Index ¶
- Constants
- type ExtensionRegistryInterface
- type LayoutManager
- func (l *LayoutManager) AppLayout(ctx *router.PageContext, content g.Node) g.Node
- func (l *LayoutManager) AuthlessLayout(ctx *router.PageContext, content g.Node) g.Node
- func (l *LayoutManager) DashboardLayout(ctx *router.PageContext, content g.Node) g.Node
- func (l *LayoutManager) RegisterLayouts() error
- func (l *LayoutManager) RootLayout(ctx *router.PageContext, content g.Node) g.Node
- func (l *LayoutManager) SetBaseUIPath(baseUIPath string)
- func (l *LayoutManager) SetExtensionRegistry(registry ExtensionRegistryInterface)
- func (l *LayoutManager) SettingsLayout(ctx *router.PageContext, content g.Node) g.Node
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 {
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 (*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
Click to show internal directories.
Click to hide internal directories.