VoileWeb.Layouts (Voile v0.1.31)

Copy Markdown View Source

This module holds different layouts used by your application.

See the layouts directory for all templates available. The "root" layout is a skeleton rendered as part of the application router. The "app" layout is set as the default layout on both use VoileWeb, :controller and use VoileWeb, :live_view.

Summary

Functions

app(assigns)

Renders your app layout.

This function is typically invoked from every template, and it often contains your application menu, sidebar, or similar.

Examples

<Layouts.app flash={@flash}>
  <h1>Content</h1>
</Layouts.app>

Attributes

  • flash (:map) (required) - the map of flash messages.
  • current_scope (:map) - the current scope. Defaults to nil.

Slots

  • inner_block (required)

dashboard(assigns)

get_year()

mobile_nav(assigns)

Attributes

  • id (:string) (required)
  • current_scope (:map) - Defaults to nil.
  • mobile_nav_logo (:string) - Defaults to nil.
  • mobile_nav_app_name (:string) - Defaults to "Voile".
  • mobile_nav_current_path (:string) - Defaults to nil.

root(assigns)

search_panel(assigns)

Attributes

  • id (:string) (required)