UI layout of Progressive Web Applications
The following options are available for the Layout Style property:
- Container panel – Occupies the entire view port (100% screen width).
- Sub-panel – Holds sections. On mobile devices, occupies the entire width and is displayed as tabs.
- Section panel – Holds fields or nested sections.
- Fixed panel – Holds a section. Aligns to the bottom of a screen.
The following diagram illustrates a sample UI layout of Progressive Views:
The responsive design automatically adjusts the Panels.
Positioning elements on the screen
Use the twelve-column layout to position elements horizontally on the screen. The following image illustrates the twelve-column layout:
A developer can implement the preceding twelve-column layout by using developer-friendly properties that are added in Developer Studio. Refer to the following example:
If you want to create a three-column layout, define the custom CSS style as follows:
- Panel 1 - 4
- Panel 2 - 4
- Panel 3 - 4
This CSS style creates a layout with orientations that vary based on screen size.
The illustrations in the following table show how the UI layout varies according to the device and screen size:
Device | UI layout |
---|---|
Desktops and tablet screens | |
Mobiles screens |
From the illustrations, you can see that PWA screens have the same layout in tablet views and desktop views. PWA screens display the mobile view only when you view the application screens on mobiles. As a result, you may see differences in how the application layout is displayed on tablets and desktops when compared to mobiles.