Documentation
¶
Overview ¶
Package dashboard provides an extensible dashboard for Zero.
The dashboard is served under `/_admin/`, with each component directly underneath that.
API calls for each Component should be handled by //zero:api endpoints, and mounted under `/_admin/api/<slug>/...`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component interface {
Detail() Detail
// Children returns sub-components for expandable sections.
Children() Components
// SetRenderer sets the renderer for the component.
SetRenderer(renderer *Renderer)
}
Component defines the structure of a dashboard component.
type Components ¶
type Components []Component
type Dashboard ¶
type Dashboard struct {
// contains filtered or unexported fields
}
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer is used by components to render their content in the admin panel.
func NewRenderer ¶
func NewRenderer(selected Component, components Components) *Renderer
NewRenderer creates a new Renderer instance.
func (*Renderer) RenderString ¶
RenderString renders a string in the main content container of the admin panel.
Click to show internal directories.
Click to hide internal directories.