Header & Sidebar Layout
Last updated
Last updated
With Adapptio, you can construct layouts literally within a few minutes. This tutorial showing the most common design is a fixed header with a sidebar panel.
Container[appContent
]
Sidebar Layout[sidebar
]
Content(Content)
Box[cntBox
]
Text[cntText
]
Content(Sidebar)
Box[sidebarPanel
]
Text[cntSideBar
]
Let's create a basic sketch of Header&Sidebar layout.
Create a new View called appLayout
.
Place a new Application Header to the canvas work-field and name it Header
.
Set up properties of the Header
as a follows: Height -> Large
; Horizontal Alignment -> Center
; Vertical Alignment -> Middle
; Background -> Light Gray
Right under Header
put a new Container called it appContent
and set up it Item Flex on Stretch
.
Into the appContent
place a new Sidebar Layout, name it sidebar
, and set up Padding of the Main Content on Wide
.
Inside boxes serve as content elements separated between sidebar and content layouts.
Place a Box into the Content Container
and name it cntBox
.
It's properties will be configured as follows: Background -> White
; Shadow -> Large
; Padding -> Wide
; Item Flex -> Stretch
Place a second Box into the Content Sidebar
, name it sidebarPanel
and set up its properties.
Background -> Gray
; Foreground -> White
; Padding -> Wide
; Item Flex -> Stretch
If you like to obtain the same results as we do, continue with the following steps.
Put a Label into the Header
, name it hdrLabel
, and set up its properties as follows: Value -> "Addaptio Daily Planet
"; Font Size -> XXXLARGE
; Icon Name -> mdi/earth
; Icon Size -> X Large
; Icon Foreground -> RED
Place a Text into the sidebarPanel
, name it cntSideBar
, and following configuration: Value -> [copy text from tab bellow]; Markdown -> true
; Markdown Blocks -> true
Same do with a Text placed into cntBox, name it cntText, and configure as follows: Value -> [copy text from tab bellow]; Markdown -> true
; Markdown Blocks -> true
If we need to switch the sidebar panel position for a specific reason, it can be simply done with one click.
Switch on the sidebar
and change Sidebar Position -> Right
.
As you tried, layout designing is fast and intuitive, and very soon, you will shape your manuscript using it for your applications. Try to make your layout from scratch.