JumarWeb.DashboardLayout (Jumar v0.1.0)
View SourceA layout with a sidebar and navbar for authenticated pages.
Summary
Functions
Renders the sidebar layout.
Examples
<DashboardLayout.dashboard_layout flash={@flash}>
<h1>Content</h1>
</DashboardLayout.dashboard_layout>Attributes
flash(:map) (required) - the map of flash messages.current_scope(:map) - the current scope. Defaults tonil.
Slots
inner_block(required)
Attributes
current_scope(:map) - the current scope. Defaults tonil.- Global attributes are accepted.
Attributes
class(:string) - Defaults tonil.- Global attributes are accepted.
Attributes
class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
current(:boolean) - Defaults tofalse.class(:string) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["href", "navigate", "patch", "method"].
Slots
inner_block(required)
Attributes
class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
class(:string) - Defaults tonil.- Global attributes are accepted.