PgFlowDashboard.Components.Layouts (PgFlow v0.1.0)

Copy Markdown View Source

Layout components for the PgFlow Dashboard.

See PgFlowDashboard.Hooks for information on installing the JavaScript hooks required for interactive features (dark mode, keyboard shortcuts).

Summary

Functions

Dashboard layout with sidebar navigation.

Navigation link component.

Page header component.

Functions

dashboard_layout(assigns)

Dashboard layout with sidebar navigation.

Requires the following hooks to be registered with LiveSocket:

  • DarkMode
  • KeyboardShortcuts
  • ShortcutsModal
  • MobileMenu

See PgFlowDashboard.Hooks for installation instructions.

Attributes

  • current_page (:atom) (required)
  • base_path (:string) - Defaults to "/pgflow".

Slots

  • inner_block (required)

page_header(assigns)

Page header component.

Attributes

  • title (:string) (required)
  • subtitle (:string) - Defaults to nil.

Slots

  • actions