KantoorWeb. Layouts
(Kantoor v1.0.0)
This module holds layouts and related functionality used by your application.
Summary
Functions
The signed-in shell: the ledger band, the sidebar with the lockup and the
areas, a top bar with the language switch and the user menu, then the page.
Below 1024 px the sidebar is a drawer opened by a checkbox, so no script is
needed. nav marks the current area (:mail, :calendar, :tasks,
:contacts, :settings, :admin_mail, :operator); wide lets the page use
the whole width.
The page before sign-in: the ledger band, a large lockup on paper and one card. Used by the start page and the sign-in errors.
Shows the flash group with standard titles and content.
The EN / NL switch (the first language shown is the current one in bold).
The mark, by <img> (the file is a large traced drawing, never inline). The
height comes from class; the name next to it is text, so the alt is empty.
The main destinations and permitted application switcher above the phone's mailboxes.
The shared area links, including the same chat and administrator permissions.
Functions
The signed-in shell: the ledger band, the sidebar with the lockup and the
areas, a top bar with the language switch and the user menu, then the page.
Below 1024 px the sidebar is a drawer opened by a checkbox, so no script is
needed. nav marks the current area (:mail, :calendar, :tasks,
:contacts, :settings, :admin_mail, :operator); wide lets the page use
the whole width.
Examples
<Layouts.app flash={@flash} current_scope={@current_scope} nav={:mail}>
<.header>Title</.header>
</Layouts.app>Attributes
flash(:map) (required) - the map of flash messages.current_scope(:map) - the current scope. Defaults tonil.nav(:atom) - the current area of the sidebar. Defaults tonil.wide(:boolean) - use the full width (webmail). Defaults tofalse.
Slots
inner_block(required)
The page before sign-in: the ledger band, a large lockup on paper and one card. Used by the start page and the sign-in errors.
Attributes
flash(:map) - Defaults to%{}.
Slots
inner_block(required)
Shows the flash group with standard titles and content.
Examples
<.flash_group flash={@flash} />Attributes
flash(:map) (required) - the map of flash messages.id(:string) - the optional id of flash container. Defaults to"flash-group".
The EN / NL switch (the first language shown is the current one in bold).
The mark, by <img> (the file is a large traced drawing, never inline). The
height comes from class; the name next to it is text, so the alt is empty.
Attributes
class(:any) - Defaults to"h-9".
The main destinations and permitted application switcher above the phone's mailboxes.
Attributes
current_scope(:map) (required)