Skip to content

Dashboard Page

You dashboard is an (optional) landing page for users when first opening your Iridium application.

This is generally where you want to provide your users oversights over the state of the application by a variety of different widgets.

Rendering a Dashboard Page

Your panel has a hook for providing a custom .templ page to serve as your dashboard

go
func AdminPanel(mux *http.IWrapper) {
    var TemplComponent templ.Component // Some sort of templ component
    
    panel.NewPanel(mux).
        Dashboard(TemplComponent)
}

Creating a Dashboard Page

You can create a new go file to contain

Released under the MIT License.