app Frame
This component implements a standard responsive layout for web-apps.
It offers the following sections
sidebar with brand, navbar section and optional complementary on the left
header at the top with actions section on the right
content section
optional navigation tablist at the bottom of content section
The sidebar is moved off-screen on small screens and can be opened by a hamburger-button, that appears at the left edge of the header.
The component is responsible for rendering all these section at the right sizes and places at different viewport-sizes and on different devices.
You can adopt the appearance of all sections by adjusting the Theme.
Example:
appFrame {
brand {
//...
}
navbar {
//...
}
complementary { //optional
//...
}
header { //optional
//...
}
actions { //optional
//...
}
content {
//...
}
tablist { //optional
//...
}
}See also
Parameters
a lambda expression for declaring the styling as fritz2's styling DSL
optional CSS class that should be applied to the element
the ID of the element
the prefix for the generated CSS class resulting in the form `$prefix-$hash`
a lambda expression for setting up the component itself.