Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
ID string // hash slug, e.g. "products" → routed via "#products"
Label string // text shown next to icon in expanded rail
Icon Component // icon component (usually a tinywasm/icons Symbol)
View Component // the module's content (often a *rightpanel.RightPanel)
Default bool // if true and no hash set, this module is shown initially
}
Module describes one registered route/page in the shell. Pure data: the consumer creates these and passes them to Platform.
type Platform ¶
type Platform struct {
Element
// AppName appears in the header (left side, near UserBlock).
AppName string
// UserBlock slot — usually an avatar/name/logout link. Optional.
UserBlock Component
// Modules registered in order — appearance order in the nav rail.
Modules []Module
// contains filtered or unexported fields
}
Platform is the typed skeleton root.
func (*Platform) Activate ¶
Activate programmatically switches to a module by ID (also updates window.location.hash on wasm builds).
func (*Platform) Notify ¶
Notify queues a typed notification in the proper viewport slot. Any non-zero durationMs → schedule dismissal; duration 0 → persistent message.
Click to show internal directories.
Click to hide internal directories.