Imison.Web.Layouts (Imison v0.1.0)

Copy Markdown View Source

The dashboard's root layout, which loads Imison's own assets, and the app shell shared by its pages, with the markup of docs/design/.

Summary

Functions

The top bar with the main navigation (Errors and Notifications, current marking the page's own link), the Live indicator when live says how the page updates (:broadcasts or :polling, each with its own title), and the Sign out button, and the page below it, headed by the info and error flash messages.

The HTML document around every dashboard page.

Functions

app(assigns)

@spec app(map()) :: Phoenix.LiveView.Rendered.t()

The top bar with the main navigation (Errors and Notifications, current marking the page's own link), the Live indicator when live says how the page updates (:broadcasts or :polling, each with its own title), and the Sign out button, and the page below it, headed by the info and error flash messages.

Attributes

  • dashboard_path (:string) (required)
  • current (:atom) - Defaults to :errors. Must be one of :errors, or :notifications.
  • flash (:map) - Defaults to %{}.
  • live (:atom) - Defaults to nil.Must be one of nil, :broadcasts, or :polling.

Slots

  • inner_block (required)

root(assigns)

@spec root(map()) :: Phoenix.LiveView.Rendered.t()

The HTML document around every dashboard page.