Responsive Grid (Nested) Layout
The simple layout is very useful but it only supports layouts that can be displayed as a single grid. With the responsive nested layout you can define more complicated layouts that consist of multiple nested grids – see the picture below:
This is where the “responsive nested” layout becomes useful. The Responsive Nested layout implements a popular “grid system” by the Twitter’s Bootstrap (see http://getbootstrap.com/css/ ). In this system you can define the width of your panel not as an absolute value in pixels but as a relative factor – a number from 1 to 12. A number of 12 indicates that the panel will always occupy all available width. A number of 1 indicates that the panel will occupy 1/12th of the available width.
For each panel you can define this factor for each device type (see Responsive Grid (Simple) layout for the list of available device types. In addition you can define “parents” for content panels.
This is best illustrated by an example (from the Sales Portal sample application). Let’s say that we want our screen to look like this on devices with enough real estate – see picture below.
To implement it we first divide the screen into rows at the top level. Here we have the row that includes the title (Team Efficiency) and input controls (Starts From and To) and everything else. So we define two panels called Period Container and Main Content Container (highlighted with red boxes on the picture below).
Within the Period Container we have two sub-panels – the title and input boxes. So we define two sub-panels underneath the Period Container Panel called Header and Filters. We want the title to occupy roughly 1/4th of the screen with filters occupying the rest. So we assign a factor of 3 to the Header sub-panel and the factor of 9 – to the Filters sub-panel. We define these factors for all device types. If there is not enough real estate to display the sub-panels side-by-side AwareIM will automatically display the filters underneath the title. We could also assign different factors for different devices – for example, we could assign a factor of 6 to both sub-panels on large devices and factors of 3 and 9 on smaller ones.
Let’s now look at the Main Content panel. In this panel we have two columns – the list of employees on the left and the rest (see picture below). So we define two sub-panels for this panel called “Employee List” and “Employee Details Container” We assign the factors of 2 and 10 to these panels respectively.
We then continue this process and look at the Employee Details Container. It consists of
3 rows: “Employee Stats Container”, “Employee Sales Chart” and “Employee Schedule” (see picture below). So we create 3 sub-panels underneath the Employee Details Container. We want them to occupy all available width so we assign a factor of 12 to each.
And finally we break the “Empoyee Stats Container” into sub-panels called “Bio”,
“Quarter Sales” and “Average Sales” and assign equal factors of 4 for each of them (see the picture below):
You can check the behaviour and responsiveness of the Sales Portal sample application by displaying it on different devices or just resizing your browser screen.